Curioustab
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Home
»
C Programming
»
Structures, Unions, Enums
Which of the following statement is True?
User has to explicitly define the numeric value of enumerations
User has a control over the size of enumeration variables.
Enumeration can have an effect local to the block, if desired
Enumerations have a global effect throughout the file.
Correct Answer:
Enumeration can have an effect local to the block, if desired
← Previous Question
Next Question→
More Questions from
Structures, Unions, Enums
The '.' operator can be used access structure elements using a structure variable.
A union cannot be nested in a structure
Bit fields CANNOT be used in union.
one of elements of a structure can be a pointer to the same structure.
A structure can contain similar or dissimilar elements
It is not possible to create an array of pointer to structures.
If a char is 1 byte wide, an integer is 2 bytes wide and a long integer is 4 bytes wide then will the following structure always occupy 7 bytes? struct ex { char ch; int i; long int a; };
Can we have an array of bit fields?
size of union is size of the longest element in the union
Can a structure can point to itself?
Discussion & Comments
No comments yet. Be the first to comment!
Name:
Comment:
Post Comment
Join Discussion
Discussion & Comments