Skip to content

Instantly share code, notes, and snippets.

@chikoski
Created December 24, 2012 08:31
Show Gist options
  • Save chikoski/4368354 to your computer and use it in GitHub Desktop.
Save chikoski/4368354 to your computer and use it in GitHub Desktop.
#include <stdio.h>
int main(int argc, char** argv){
char* name = "World";
if(argc > 1){
name = argv[1];
}
printf("Hello, %s!\n", name);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment