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
a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above
What is openmp in c?
Define the scope of static variables.
what is a constant pointer in C
How are 16- and 32-bit numbers stored?
List some basic data types in c?
Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]
Which type of language is c?
Why can arithmetic operations not be performed on void pointers?
Explain what are reserved words?
What is meant by operator precedence?
What is the difference between exit() and _exit() function?
What is the code for 3 questions and answer check in VisualBasic.Net?
Are global variables static in c?
Can you please compare array with pointer?