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
in programming languages a statement or part of a statement that specifies several different execution sequences a) constructs b) distructs c) executes d) none
Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?
Explain setjmp()?
What is logical error?
Function which gives a pointer to a binary trees const an integer value at each code, return function of all the nodes in binary tree.?
what is uses of .net
Can you please explain the difference between syntax vs logical error?
Is anything faster than c?
Explain why can’t constant values be used to define an array’s initial size?
shorting algorithmS
Add Two Numbers Without Using the Addition Operator
What is an endless loop?
What is context in c?
What is equivalent to ++i+++j?
Explain what is the concatenation operator?