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

if (i = 0)printf ("True"); elseprintf("False"); Under what conditions will the above print out the string "True" a) Never b) Always c) When the value of i is 0 d) all of the above

1107


how to write optimum code to divide a 50 digit number with a 25 digit number??

3203


What is the difference between procedural and functional programming?

1007


If you know then define #pragma?

1052


The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?

1221


When should we use pointers in a c program?

1080


What does printf does?

1190


In C programming, how do you insert quote characters (‘ and “) into the output screen?

1476


What is function what are the types of function?

946


Explain low-order bytes.

974


What is sizeof array?

999


What is operator promotion?

1011


How can a string be converted to a number?

963


What does %p mean?

1031


What are the similarities between c and c++?

1001