#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

write a program to print %d ?

12 Answers  


What is substring in c?

0 Answers  


What is malloc calloc and realloc in c?

0 Answers  


Write a c program to print the sizes and ranges of different data types in c?

1 Answers  


no consistent academics. how to answer the question

0 Answers  






main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }

0 Answers   Wilco,


#define MAX 3 main() { printf("MAX = %d ",MAX ); #undef MAX #ifdef MAX printf("Vector Institute”); #endif }

1 Answers  


how to determine the complexity of an algorithm as log(n)

1 Answers   Google,


What are the similarities between c and c++?

0 Answers  


marge linklist

0 Answers   HCL,


what is void pointer?

2 Answers  


What is the purpose of void in c?

0 Answers  


Categories