#include<stdio.h>
#include<conio.h>

struct stu
{
int i;
char j;

};
union uni
{
int i;
char j;
};
void main()
{
int j,k;
clrscr();
struct stu s;
j=sizeof(s);
printf("%d",j);
union uni u;


k=sizeof(u);

printf("%d",k);
getch();
}


what is value of j and k.

Answers were Sorted based on User's Feedback



#include<stdio.h> #include<conio.h> struct stu { int i; char j; }; union un..

Answer / swastika chatterjee

32

Is This Answer Correct ?    3 Yes 2 No

#include<stdio.h> #include<conio.h> struct stu { int i; char j; }; union un..

Answer / rohit

84

Is This Answer Correct ?    2 Yes 2 No

Post New Answer

More C Interview Questions

in multiple branching construct "default" case is a) optional b) compulsarily c) it is not include in this construct d) none of the above

0 Answers  


What are pragmas and what are they good for?

0 Answers  


What is structure data type in c?

0 Answers  


What is array of pointers to string?

0 Answers  


How do you view the path?

0 Answers  


What is an endless loop?

0 Answers  


List a few unconditional control statement in c.

0 Answers  


write a program to find the frequency of a number

4 Answers   Infosys,


out put of printf(“%d”,printf(ram));

5 Answers  


void main() { char far *farther,*farthest; printf("%d..%d",sizeof(farther),sizeof(farthest)); }

3 Answers   ME, pspl,


who is the father of c

4 Answers   Infosys,


How can variables be characterized?

0 Answers  


Categories