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
write a program to generate address labels using structures?
If jack lies on Mon, Tue Wed and jill lies on Thursday, Friday and Saturday. If both together tell they lied yesterday. So c the given options and then c cos in the given dates one will be saying the truth and one will be lying. I got Thursday as option because jack is saying the truth he lied yest but jill is lying again as he lies on that day.
what are the advanced features of functions a) function declaration and prototypes b) calling functions by value or by reference c) recursion d) all the above
How can you call a function, given its name as a string?
What is a good way to implement complex numbers in c?
Discuss the function of conditional operator, size of operator and comma operator with examples.
What is the use of ?: Operator?
How do you determine whether to use a stream function or a low-level function?
What are c preprocessors?
What are local static variables? How can you use them?
What is register variable in c language?
What are the three constants used in c?
Dont ansi function prototypes render lint obsolete?
Is c language still used?
How will you write a code for accessing the length of an array without assigning it to another variable?