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
what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)
Is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
What is meant by type casting?
All technical questions
Define Array of pointers.
List out few of the applications that make use of Multilinked Structures?
If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?
What is a macro, and explain how do you use it?
Can a program have two main functions?
Is sizeof a keyword in c?
What is the concatenation operator?
Why c is procedure oriented?
Why void main is used in c?
What is define c?
Explain which function in c can be used to append a string to another string?