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);

}

Answers were Sorted based on User's Feedback



what would be the output of the follwing struct st { char name[20]; int i; float f; ..

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

what would be the output of the follwing struct st { char name[20]; int i; float f; ..

Answer / ajay

0 0.000000

Is This Answer Correct ?    5 Yes 0 No

what would be the output of the follwing struct st { char name[20]; int i; float f; ..

Answer / rama krishna sidhartha

0,0.000000

Is This Answer Correct ?    3 Yes 0 No

what would be the output of the follwing struct st { char name[20]; int i; float f; ..

Answer / karthik

0, 0.00

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More C Interview Questions

what will be printed by this printf? printf("%c",printf("hi")["sharkselva"])); }

3 Answers   HCL,


give one ip, find out which contry

4 Answers   Google,


how can I convert a string to a number?

0 Answers  


How can I set an array's size at run time?

9 Answers  


Are the variables argc and argv are always local to main?

0 Answers  


a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion

0 Answers   Mindteck,


What is property type c?

0 Answers  


What does 4d mean in c?

0 Answers  


main() { int i; printf("%d",scanf"%d",&i))//if the input is 12 24 34 then wat will be the output }

2 Answers  


What is meant by type specifiers?

0 Answers  


What is far pointer in c?

0 Answers  


7. Identify the correct argument for the function call fflush() in ANSI C: A)stdout B)stdin C)stderr D)All the above

10 Answers   Accenture,


Categories