STRING DISPLAY WITH SPACE

#include<stdio.h>
#include<conio.h>
void main()

 char nm[20];
 clrscr();
 printf("\nENter Name : ");
 /*it can't read string
   value with space*/
 //scanf("%s",&nm);
 gets(nm);
 printf("Given Name = %s",nm);
 getch();
}
Output


No comments:

Post a Comment

Programmingway@Eklavya Technosys!: JTET 2026 | Computer Sections Solutions | Paper -II

Programmingway@Eklavya Technosys!: JTET 2026 | Computer Sections Solutions | Paper -II :   1) Which of the following is the extension of Not...