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 / ankush

#include<stdio.h>
#include<conio.h>
void main()
{
char fnm[20],snm[10],lnm[10];
clrscr();
printf("Enter student First Name: ");
gets(fnm);
printf("Enter student Middle Name: ");
gets(snm);
printf("Enter student Last Name: ");
gets(lnm);
printf("\nThe Name is: ");
printf("%s %s %s",fnm,snm,lnm);
getch();
}

Is This Answer Correct ?    12 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above

1355


What is openmp in c?

984


Define the scope of static variables.

1081


what is a constant pointer in C

1113


How are 16- and 32-bit numbers stored?

1259


List some basic data types in c?

990


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

1042


Which type of language is c?

1038


Why can arithmetic operations not be performed on void pointers?

1004


Explain what are reserved words?

1062


What is meant by operator precedence?

1107


What is the difference between exit() and _exit() function?

1013


What is the code for 3 questions and answer check in VisualBasic.Net?

2126


Are global variables static in c?

1129


Can you please compare array with pointer?

1050