10 February 2022

Function - gets()



#include<stdio.h>

int main()
{
    char name[50];
    printf("Enter your name : ");
    gets(name);

// This function is used to take
// multiple string at a time

    printf("Your name is %s", name);
 
return 0;
}

OUTPUT-->

Enter your name : Nandkishor Rawool Your name is Nandkishor Rawool

No comments:

Post a Comment