receiving scanf input with a pointer in c

Solutions on MaxInterview for receiving scanf input with a pointer in c by the best coders in the world

showing results for - "receiving scanf input with a pointer in c"
Rodrigo
27 Jan 2020
1/**
2* main - start of the program
3* @c: character array 
4* 
5* Desc: Takes a string from stdin and prints it out to stdout
6* Returns: 0 on success
7*/
8int main()
9{
10        char c[100];
11
12        printf("Enter your string\n");
13        scanf("%s", c);
14
15        printf("You have entered %s",c);
16
17        return 0;
18}