Compare commits
1 commit
main
...
new-amazin
Author | SHA1 | Date | |
---|---|---|---|
e378aa9473 |
1 changed files with 10 additions and 1 deletions
11
main.c
11
main.c
|
@ -1,4 +1,13 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int main() { return NULL; }
|
||||
int main(void) {
|
||||
char *name = malloc(10);
|
||||
|
||||
printf("What's your name?\n> ");
|
||||
scanf("%s", name);
|
||||
|
||||
printf("Hello %s!\n", name);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
|
Reference in a new issue