43-Write a program to show the functioning of gets and puts.

Program: 43

Write a program to show the functioning of gets and puts.

#include
#include
void main()
{
    char name[25];
    printf("Enter your name: ");
    gets(name);
    printf("\nYour name is: ");
    puts(name);
    getch();
}
Output
Enter your name: EASTER SCIENCE

Your name is: EASTER SCIENCE

Lokesh Kumar: Being EASTER SCIENCE's founder, Lokesh Kumar wants to share his knowledge and ideas. His motive is "We assist you to choose the best", He believes in different thinking.
Related Post
Leave a Comment

This website uses cookies.