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


Please Help Members By Posting Answers For Below Questions

Explain b+ tree?

1009


What is storage class?

1019


What is realloc in c?

1021


What does c in a circle mean?

1024


Which is more efficient, a switch statement or an if else chain?

972


What is a dynamic array in c?

1078


What is identifiers in c with examples?

1124


Write a program to check armstrong number in c?

1083


What is the default value of local and global variables in c?

986


What are valid operations on pointers?

1154


What are the 3 types of structures?

983


What is call by reference in functions?

1327


What is the use of sizeof () in c?

996


which of the following is allowed in a "C" arithematic instruction a) [] b) {} c) () d) none of the above

1653


Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.

1072