WAP to accept first name,middle name & last name of a
student display its initials?
Answer Posted / ricky
hi chandan
this is the modification of ur ans
#include<stdio.h>
#include<conio.h>
void main()
{
char fname[20],mname[20],lname[20];
clrscr();
printf("Enter student First Name: ");
scanf("%s",fname);
printf("Enter student Middle Name: ");
scanf("%s",mname);
printf("Enter student Last Name: ");
scanf("%s",lname);
printf("The Output of the Following is: \n");
printf("%c %c %c",fname[0],mname[0],lname[0]);
getch();
}
| Is This Answer Correct ? | 2 Yes | 5 No |
Post New Answer View All Answers
Explain b+ tree?
What is storage class?
What is realloc in c?
What does c in a circle mean?
Which is more efficient, a switch statement or an if else chain?
What is a dynamic array in c?
What is identifiers in c with examples?
Write a program to check armstrong number in c?
What is the default value of local and global variables in c?
What are valid operations on pointers?
What are the 3 types of structures?
What is call by reference in functions?
What is the use of sizeof () in c?
which of the following is allowed in a "C" arithematic instruction a) [] b) {} c) () d) none of the above
Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.