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

what would be the output of the follwing

struct st
{
char name[20];
int i;
float f;

};
main()
{
struct st emp = {"forum"};
printf("%d %f",emp.i,emp.f);

}

Answer Posted / maruthi

Answer:0,0

Because if 1 element is initialised in structure or array
the remaining elements are initialised to 0 by default.

Is This Answer Correct ?    8 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What standard functions are available to manipulate strings?

1156


write a c program to find the sum of five entered numbers using an array named number

2144


Which built-in library function can be used to match a patter from the string?

1303


Why do we need a structure?

1045


How can a process change an environment variable in its caller?

1190


What is pointers in c?

1119


What does dm mean sexually?

1323


What are type modifiers in c?

1056


Explain the use of 'auto' keyword in c programming?

1121


How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?

1114


Function which gives a pointer to a binary trees const an integer value at each code, return function of all the nodes in binary tree.?

1079


while initialization of array why we use a[][2] why not a[2][]...?

2365


Is file a keyword in c?

935


What are the valid places to have keyword “break”?

1091


How can I copy just a portion of a string?

1318