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
How can a number be converted to a string?
Write a program to print numbers from 1 to 100 without using loop in c?
Write a program to check palindrome number in c programming?
what is the differnce between programing langauge and tool? is sas is a programing langauge r tool?
What is an auto variable in c?
How can I invoke another program or command and trap its output?
Explain goto?
Explain what is the purpose of "extern" keyword in a function declaration?
What is the heap in c?
Which is better pointer or array?
Can I initialize unions?
What are the usage of pointer in c?
i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....
What is the difference between int main and void main?
can any one provide me the notes of data structure for ignou cs-62 paper