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
Which of these functions is safer to use : fgets(), gets()? Why?
Write a function stroverlap that takes (at least) two strings, and concatenates them, but does not duplicate any overlap. You only need to worry about overlaps between the end of the first string and the beginning of the second string. Examples: batman, manonthemoon = batmanonthemoon batmmamaman, mamamanonthemoon = batmmamamanonthemoon bat, man = batman batman, batman = batman batman, menonthemoon = batmanmenonthemoon
How do we open a binary file in Read/Write mode in C?
what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)
What is call by reference in functions?
How do you define a function?
What are multidimensional arrays?
Differentiate between a structure and a union.
When c language was developed?
What is the purpose of macro in C language?
What are the uses of a pointer?
Can stdout be forced to print somewhere other than the screen?
How are variables declared in c?
What oops means?
What happens if a header file is included twice?