A. | Automatic |
B. | Register |
C. | Static |
D. | Anything |
Option: D Explanation : Click on Discuss to view users comments. |
Which of the following comments about union are true?
A. | Union is a structure whose members share the same storage area |
B. | Size allocated for union is the size of its member needing the maximum storage |
C. | Only one of the members of union can be assigned a value at a particular time |
D. | All of these |
Option: D Explanation : Click on Discuss to view users comments. |
Which of the following comments about the usage of structure is true?
A. | Storage class can be assigned to an individual member |
B. | Individual members can be initialized within a structure type declaration |
C. | The scope of a member name is confined to the particular structure, within which it is defined |
D. | None of the above |
Option: C Explanation : Click on Discuss to view users comments. |
Consider the following declaration.
struct addr
{
char city [10];
char street [20];
int pincode;
};
struct
{
char name[20];
int sex;
struct addr locate;
} criminal, *kd * &criminal;
sex can be accessed by
A. | criminal .sex |
B. | ( * kd) . sex |
C. | kd —> sex |
D. | All of these |
Option: D Explanation : Click on Discuss to view users comments. swamy said: (12:23am on Saturday 30th March 2013)
option a and c and b also correct.
|
Consider the following declaration.
struct addr
{
char city [10];
char street [20];
int pincode;
};
struct
{
char name[20];
int sex;
struct addr locate;
} criminal, *kd * &criminal;
pincode can be accessed by
A. | criminal . locate . pincode |
B. | criminal .pincode |
C. | kd--->locate . pincode |
D. | kd. locate —> pincode |
Option: C Explanation : Click on Discuss to view users comments. |
Syllabus Covered in this section is
This Section covers Multiple Choice Questions Answers in C Programming . Here questions answers are given with explanation and references. These questions can be used for the preparation of various competitive and academic exams.
Who can benefit -
Various Search Terms used for this section are