WAP to accept first name,middle name & last name of a
student display its initials?
Answer Posted / ankush
#include<stdio.h>
#include<conio.h>
void main()
{
char fnm[20],snm[10],lnm[10];
clrscr();
printf("Enter student First Name: ");
gets(fnm);
printf("Enter student Middle Name: ");
gets(snm);
printf("Enter student Last Name: ");
gets(lnm);
printf("\nThe Name is: ");
printf("%s %s %s",fnm,snm,lnm);
getch();
}
| Is This Answer Correct ? | 12 Yes | 7 No |
Post New Answer View All Answers
Do you know what are the properties of union in c?
What is calloc() function?
What are predefined functions in c?
What are header files in c programming?
How many parameters should a function have?
Explain how do you determine whether to use a stream function or a low-level function?
Why structure is used in c?
What is the advantage of an array over individual variables?
What is the use of function in c?
What is a structure and why it is used?
What is call by value in c?
What is bin sh c?
How can you increase the allowable number of simultaneously open files?
What should malloc() do?
What is c variable?