C program to show input and output of a string Post author:Educate Post published:August 2, 2023 Post category:C and C++ Post comments:0 Comments #include #include void main() { char a[50]; clrscr(); printf(“enter any string: ”); gets(a); puts(a); getch(); } Output: enter any string: hi everyone hi everyone You Might Also Like Program to Sort a given set of elements using the Heap sort August 23, 2023 C program to find the largest element in a given doubly linked list August 31, 2023 C Program to calculate sum of 5 subjects and find percentage July 31, 2023 Leave a Reply Cancel replyCommentEnter your name or username to comment Enter your email address to comment Enter your website URL (optional) Save my name, email, and website in this browser for the next time I comment.