#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.
Answer Posted / swastika chatterjee
32
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
Does sprintf put null character?
How can I find out the size of a file, prior to reading it in?
What does emoji p mean?
Which one would you prefer - a macro or a function?
Explain what is wrong with this statement? Myname = ?robin?;
List the difference between a "copy constructor" and a "assignment operator"?
Explain what is wrong with this program statement? Void = 10;
What is difference between function overloading and operator overloading?
How can I get back to the interactive keyboard if stdin is redirected?
List the variables are used for writing doubly linked list program.
Is it better to bitshift a value than to multiply by 2?
Tell us bitwise shift operators?
Difference between pass by reference and pass by value?
Are the outer parentheses in return statements really optional?
Explain what are the advantages and disadvantages of a heap?