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

0, 0.00

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the return type of sizeof?

601


main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none

729


What is an example of structure?

591


What are the different types of pointers used in c language?

616


What is the difference between array and structure in c?

575






How can I access an I o board directly?

629


How can I do serial ("comm") port I/O?

695


What is the difference between void main and main in c?

628


Explain indirection?

652


How do I copy files?

627


What are the two types of structure?

581


Explain the difference between null pointer and void pointer.

677


The number of bytes of storage occupied by short, int and long are a) 2, 2 and 4 b) 2, 4 and 4 c) 4, 4 and 4 d) none

768


What is the function of volatile in c language?

670


What is call by value in c?

565