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
a construct the"else" part of "if" statement contains anoth "if else" statement is called a) if-else b) else-if-else c) if-else-if-else d) chain if/if-else-if
What is the use of a semicolon (;) at the end of every program statement?
What is extern variable in c with example?
What is bubble sort in c?
largest Of three Number using without if condition?
Is c is a low level language?
What are the types of assignment statements?
What is the role of this pointer?
Is c easy to learn?
the statement while(i) puts the entire logic in loop. this loop is called a) indefinite loop b) definite loop c) loop syntax wrong d) none of the above
What are compound statements?
How do we declare variables in c?
what type of questions arrive in interview over c programming?
What type of function is main ()?
Is c procedural or functional?