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
What is typedef?
What is #include stdio h and #include conio h?
1) write a program to generate 1st n fibonacci prime numbers using Nested if 2) write a program to generate twin prime numbers from m to n using nested if 3) write a program to check whether a given integer is a strong number or not using nested if 4) Write a program to generate prime factors of a given integer using nested if 5)write a program to generate prime numbers from m to n using nested if 6)write a program to generate perfect numbers from m to n using nested if 7)write a program to generate the pallindromes from m to n using neste if 8)write a program to generate armstrong numbers from m to n using nested if 9)write a program to generate strong numbers from m to n using nested if
What is function pointer c?
How can you find the exact size of a data type in c?
Why pointers are used?
How can I make sure that my program is the only one accessing a file?
if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0
any limit on the number of functions that might be present in a C program a) max 35 functions b) max 50 functions c) no limit d) none of the above
What is dynamic dispatch in c++?
What is scope and lifetime of a variable in c?
write a program to display all prime numbers
Why does everyone say not to use gets?
Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10
What is hungarian notation? Is it worthwhile?