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
What is c token?
What is the use of volatile?
Why use int main instead of void main?
What are the advantages of using Unions?
Explain how can you tell whether two strings are the same?
Difference between linking and loading?
a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list
can we change the default calling convention in c if yes than how.........?
What does a pointer variable always consist of?
How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same
What are multibyte characters?
Why c is called top down?
What are linker error?
Can you tell me how to check whether a linked list is circular?
Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?