A. | Passed to a function |
B. | Changed within a function |
C. | Returned by a function |
D. | Can be assigned an integer value |
Option: C Explanation : Click on Discuss to view users comments. |
A. | a and b are structures |
B. | a is structure and b is a pointer to a structure |
C. | a is a pointer to a structure and b is a structure |
D. | None of these |
Option: A Explanation : Click on Discuss to view users comments. |
The statement
if ( myPtr != NULL )
*myPtr = NULL;
else
*myPtr = NULL;
has the same effect as the statements(s)
A. |
if(myPtr) *myPtr = NULL; |
B. | *myPtr = NULL; |
C. |
if(!myPtr) *myPtr = NULL; |
D. | All of these |
Option: D Explanation : Click on Discuss to view users comments. |
Consider the following program fragment.
static char wer[3][4] = {"bag", "let", "bud"};
char(*ptr)[4] = wer;
In which of the following cases will the character 't' be printed?
A. | putchar ( * ( * (ptr+1) + 2)); |
B. | putchar ( * (wer [1] + 2) ) ; |
C. | putchar (* (ptr+1) + 2); |
D. | none of the above |
Option: B 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