Easy
In C, knowing that on the machine where the following code is executed a long weighs 8 bytes, a char 1 byte and a short 2 bytes, give the size in bytes of the following structure (1 correct answer only) :
struct t {
 long z;
 union U {
    long a;
    char b;
    long c;
 }u;
};
Author: Vincent  CotroStatus: PublishedQuestion passed 880 times
Edit
8
Community EvaluationsNo one has reviewed this question yet, be the first!
1
What does the following code refer to:  C:\ProgramFiles\QtCreator\text.txt ? 5
Undefined behavior.2
Write a C function to swap two integers.2
Write a C program to calculate the total number of sweets.4
Find the sum of all even numbers in an array in C3
Write a C program that calculates the average of two notes.1
Write a C program that prints the number of years a child needs to grow to be able to ride a roller coaster.