Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- void helloworld()
- {
- printf("Hello World\n");
- }
- void helloname(char* name)
- {
- printf("Hello %s\n", name);
- }
- void main(int argc, char** argv)
- {
- if(argc == 1)
- helloworld();
- else if(argc == 2)
- helloname(argv[1]);
- else
- printf("Goodbye World\n");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement