This is a simple C program that reads in a string from the user and prints it back to the console. It uses the following functions:
The program declares an array of characters named str with a size of 100, which will be used to store the input string. The message "Enter The String:" is displayed, prompting the user to enter a string. The gets function is then used to read the input string from the user and store it in str. Finally, the message "Given String:" is displayed, followed by the puts function, which writes the content of str to the console.
#include<stdio.h> int main() { char str[100]; printf("\nEnter The String:"); gets(str); printf("\nGiven String:"); puts(str); return 0; }To download raw file Click Here
Enter The String: Tutor Joe's Given String: Tutor Joe's
Learn All in Tamil © Designed & Developed By Tutor Joes | Privacy Policy | Terms & Conditions