Question from the Language C - Fundamentals test

What is the size of a long long in C++?

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 793 times
Edit
7
Community EvaluationsNo one has reviewed this question yet, be the first!