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 use of ?: Operator?
Why is it usually a bad idea to use gets()? Suggest a workaround.
Write the Program to reverse a string using pointers.
Tell me what are bitwise shift operators?
What is actual argument?
Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?
What are the types of operators in c?
Explain goto?
What is meant by 'bit masking'?
how can use subset in c program and give more example
How can I manipulate strings of multibyte characters?
What are the different file extensions involved when programming in C?
Why do we need a structure?
Why static variable is used in c?
write a program that will open the file, count the number of occurences of each word in the the complete works of shakespeare. You will then tabulate this information in another file.