Thursday, 16 June 2011

The String I/O Functions gets() and puts()

void main(void)
{
 char name[81];


 puts("Enter your name: ");
 gets(name);
 puts("Greetings, ");
 puts(name);
}


Output:


Enter your name: 
Muzammil Versiani
Greetings, 
Muzammil Versiani

0 comments:

Post a Comment