Curioustab
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Home
»
C Programming
»
Structures, Unions, Enums
A structure can contain similar or dissimilar elements
True
Correct Answer:
True
← Previous Question
Next Question→
More Questions from
Structures, Unions, Enums
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?
If the following structure is written to a file using fwrite(), can fread() read it back successfully? struct emp { char *n; int age; }; struct emp e={"CuriousTab", 15}; FILE *fp; fwrite(&e, sizeof(e), 1, fp);
Is there easy way to print enumeration values symbolically?
The elements of union are always accessed using & operator
Is it necessary that the size of all elements in a union should be same?
By default structure variable will be of auto storage class
Discussion & Comments
No comments yet. Be the first to comment!
Name:
Comment:
Post Comment
Join Discussion
Discussion & Comments