#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

main() { enum _tag{ left=10, right, front=100, back}; printf("%d, %d, %d, %d", left, right, front, back); }

1 Answers   Accenture, Vector,


Which weighs more, a gram of feathers or a gram of gold?

2 Answers  


4.weight conversion: Write a program that will read weight in pounds and convert it into grams.print both the original weight and the converted value.There are 454 grams in a pound.design and carry out a test plan for this program.

1 Answers   Wipro,


What is call by reference in functions?

1 Answers  


What are different types of operators?

0 Answers  






print the pattern 1 2 4 3 6 9 4 8 12 16 5 10 15 20 25 if n=5

3 Answers   Winit,


What is an lvalue in c?

0 Answers  


Is c pass by value or reference?

0 Answers  


Difference between pass by reference and pass by value?

0 Answers   TCS, TISL,


hai iam working in sap sd module for one year and working in lumax ind ltd in desp department but my problem is i have done m.b.a in hr/marketing and working sap sd there is any combination it. can you give right solution of my problem. and what can i do?

0 Answers   HCL,


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

0 Answers   Aspire, Infogain, TISL,


Write a program to reverse a linked list in c.

0 Answers   DELL, HAL,


Categories