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
Can you write a programmer for FACTORIAL using recursion?
What are directives in c?
What is structure in c explain with example?
Why is struct padding needed?
How can I list all of the predefined identifiers?
Implement bit Array in C.
Write a Program to accept different goods with the number, price and date of purchase and display them
Is it possible to initialize a variable at the time it was declared?
in iso what are the common technological language?
In C language what is a 'dangling pointer'?
What is the incorrect operator form following list(== , <> , >= , <=) and what is the reason for the answer?
write a c programming using command line argument,demonstrate set operation(eg;union,intersection,difference) example output is c:>setop 12 34 45 1 union 34 42 66 c:>setop 12 34 1 42 66 c:>setop 12 34 diff 12 56 67 78 setop 12 34
List some of the dynamic data structures in C?
Where define directive used?
Why ca not I do something like this?