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 are reserved words?
What is indirection? How many levels of pointers can you have?
Write a code to generate a series where the next element is the sum of last k terms.
any function have arguments one or more OR not . it is compulsary a) any function compulsary have one or more arguments b) any function did not have arguments. It is not compulsary c) it is optional it is not compulsary d) none of the above
What is typedf?
Can you please explain the difference between exit() and _exit() function?
What is string function in c?
What is exit() function?
a program that performs some preliminary processing in C, it acts upon certain directives that will affect how the compiler does its work a) compiler b) loader c) directive d) preprocessor
What does stand for?
List some basic data types in c?
Why isnt there a numbered, multi-level break statement to break out
Differentiate between a structure and a union.
write a c program to print the next of a particular no without using the arithmetic operator or looping statements?
Explain how do you search data in a data file using random access method?