Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main(){
- /* A nice long string */
- char string[256];
- printf( "Please enter your name: " );
- /* notice stdin being passed in */
- fgets ( string, 256, stdin );
- printf( "Hello %s", string );
- printf("Press <ENTER> to continue...");
- getchar();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement