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
What is the use of bitwise operator?
the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters
Describe static function with its usage?
What is the package for freshers(Non IIT) in amazon(hyderabad). And what is the same for those who are a contract employee.
Write a c program to build a heap method using Pointer to function and pointer to structure ?
Explain what header files do I need in order to define the standard library functions I use?
How can I ensure that integer arithmetic doesnt overflow?
What is the use of putchar function?
What is array of structure in c?
How would you use the functions fseek(), freed(), fwrite() and ftell()?
Explain what will the preprocessor do for a program?
How can I rethow can I return a sequence of random numbers which dont repeat at all?
What is the right way to use errno?
hi send me sample aptitude papers of cts?
Explain what does the format %10.2 mean when included in a printf statement?