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 is the use of bitwise operator?

1174


the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters

2348


Describe static function with its usage?

1274


What is the package for freshers(Non IIT) in amazon(hyderabad). And what is the same for those who are a contract employee.

4336


Write a c program to build a heap method using Pointer to function and pointer to structure ?

4751


Explain what header files do I need in order to define the standard library functions I use?

1229


How can I ensure that integer arithmetic doesnt overflow?

1255


What is the use of putchar function?

1109


What is array of structure in c?

1254


How would you use the functions fseek(), freed(), fwrite() and ftell()?

1204


Explain what will the preprocessor do for a program?

1112


How can I rethow can I return a sequence of random numbers which dont repeat at all?

1239


What is the right way to use errno?

1117


hi send me sample aptitude papers of cts?

2220


Explain what does the format %10.2 mean when included in a printf statement?

1414