The following is a C Program to Print a String on screen after taking input from user. Let's get started.

C Program to Print String
C Program to Print String



scanf() function is used to obtain input and printf() function is used to print the string on the screen.


int main()
/*variable definition and initialization*/     
    char stringArray[100];
    printf("Please write something: \n");
    printf("You entered the string %s\n",stringArray);
    return 0; 


String Output
String Output

All programs compiled in this post are compiled online.

Books I Prefer:

I hope this article was helpful to understand C Program to Print a String! Comment below, if you've got any question. Head back soon for another interesting article on C Programming.