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's the best way of making my program efficient?
What is a static variable in c?
What is identifiers in c with examples?
what is the c source code for the below output? 5555555555 4444 4444 333 333 22 22 1 1 22 22 333 333 4444 4444 5555555555
How to check whether string is a palindrome, WITHOUT USING STRING FUNCTIONS?
1. Write a function to display the sum of two numbers in the following ways: By using (i) pass by value (ii) pass by address a. function with argument and with return value b. function with argument and without return value c. without argument , with return value d. without argument , without return value Note: Use pass by address.
How many keywords are there in c?
What are nested functions in c?
‘ C’ PROGRAME TO SHOW THE TYPE OF TRANGLE BY ACCEPTING IT’S LENGTH .
hi any body pls give me company name interview conduct "c" language only
Suggesting that there can be 62 seconds in a minute?
How can I write functions that take a variable number of arguments?
What are type modifiers in c?
The number of measuring units from an arbitarary starting point in a record,area,or control block to some other point a) recording pointer b) offset c) branching d) none
What are the 5 types of organizational structures?