Answers for "receiving scanf input with a pointer in c"

C
1

receiving scanf input with a pointer in c

/**
* main - start of the program
* @c: character array 
* 
* Desc: Takes a string from stdin and prints it out to stdout
* Returns: 0 on success
*/
int main()
{
        char c[100];

        printf("Enter your string\n");
        scanf("%s", c);

        printf("You have entered %s",c);

        return 0;
}
Posted by: Guest on August-05-2021

Code answers related to "C"

Browse Popular Code Answers by Language