Struct(s)
{
int a;
long b;
}
Union (u)
{int a;
long b;
}
Print sizeof(s)and sizeof(u) if sizeof(int)=4 and
sizeof(long)=4
Answer Posted / jack
I assume above code to be correctly written as below:
struct s
{
int a;
long b;
}
Union u
{int a;
long b;
}
sizeof(s)= 8
sizeof(u) = 4
Is This Answer Correct ? | 9 Yes | 0 No |
Post New Answer View All Answers
What is a shell structure examples?
Why c is procedure oriented?
Explain what would happen to x in this expression: x += 15; (assuming the value of x is 5)
any limit on the number of functions that might be present in a C program a) max 35 functions b) max 50 functions c) no limit d) none of the above
What are the advantages of using linked list for tree construction?
What is a pragma?
What is your stream meaning?
How can a string be converted to a number?
In C language what is a 'dangling pointer'?
List some basic data types in c?
Why is c fast?
What is the meaning of typedef struct in c?
Which is better between malloc and calloc?
What does volatile do?
Was 2000 a leap year?