Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

which is an algorithm for sorting in a growing Lexicographic order

1786


Explain the difference between ++u and u++?

1114


What the different types of arrays in c?

1051


Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]

1057


Can we change the value of constant variable in c?

1036


Why is a semicolon (;) put at the end of every program statement?

1056


What does the characters “r” and “w” mean when writing programs that will make use of files?

1462


What is the difference between Printf(..) and sprint(...) ?

1508


What do you mean by dynamic memory allocation in c? What functions are used?

1150


What are conditional operators in C?

1082


What is linear search?

1121


Who invented b language?

1383


What is echo in c programming?

1003


What is the difference between malloc() and calloc()?

1804


Mention four important string handling functions in c languages .

1075