10 February 2022

Function - puts()


  
#include<stdio.h>

int main()
{
    char name[50];
    printf("Enter your name : ");
    gets(name);
    puts(name);
   
   //puts is used to print without using printf function
 
return 0;
}

OUTPUT-->

Enter your name : Nandkishor Rawool. Nandkishor Rawool.

No comments:

Post a Comment