Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main() {
- char name[20]; // this is a string
- printf("What is your name? ");
- gets(name); // scanf("%s", &name); // read(name)
- printf("Hello %s\n", name);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment