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

What is c token?

1122


What is the use of volatile?

1150


Why use int main instead of void main?

1178


What are the advantages of using Unions?

1170


Explain how can you tell whether two strings are the same?

1077


Difference between linking and loading?

1155


a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list

1048


can we change the default calling convention in c if yes than how.........?

2592


What does a pointer variable always consist of?

1157


How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same

1170


What are multibyte characters?

1190


Why c is called top down?

1216


What are linker error?

1150


Can you tell me how to check whether a linked list is circular?

1497


Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?

1153