Programming Languages C Objective
Jan 04, 2013

#include
struct XX{
    int a:10;
    int b:6;
    char c;
} structure;
int main(){
    int i = sizeof(structure);
    printf("%d", i);
}

Output of the program is

Choose the correct answer:
A) garbage value
B) error
C) 5
D) 7
Detailed Explanation

The output of the program is 4.

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback