WAP to accept first name,middle name & last name of a
student display its initials?
Answer Posted / chandan kumar r
#include<stdio.h>
#include<conio.h>
void main()
{
char fname[20],mname[20],lname[20];
clrscr();
print("Enter student First Name: ");
scanf("%c",fname);
print("Enter student Middle Name: ");
scanf("%c",mname);
print("Enter student Last Name: ");
scanf("%c",lname);
print("The Output of the Following is: \n");
printf("%c %c %c",fname[0],mname[0],lname[0]);
getch();
}
| Is This Answer Correct ? | 20 Yes | 17 No |
Post New Answer View All Answers
which is an algorithm for sorting in a growing Lexicographic order
Explain the difference between ++u and u++?
What the different types of arrays 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.]
Can we change the value of constant variable in c?
Why is a semicolon (;) put at the end of every program statement?
What does the characters “r” and “w” mean when writing programs that will make use of files?
What is the difference between Printf(..) and sprint(...) ?
What do you mean by dynamic memory allocation in c? What functions are used?
What are conditional operators in C?
What is linear search?
Who invented b language?
What is echo in c programming?
What is the difference between malloc() and calloc()?
Mention four important string handling functions in c languages .