C Programming Questions & Answers: part6



Software Programming : C Programming QUESTIONS AND ANSWERS :: part6 : 11 to 15

Following Software Programming language Entrance Multiple choice objective type questions and answers will help you in Software Programming 2024 examinations :

11.For the following structure declaration, find the correct statement. struct person { char name[20]; int age; struct person lady; };

Is a valid nested structure
Uses an invalid data type
Is a self referential structure
Is not a valid nested structure
Is a self referential structure with invalid data type.

12.int A[4] = { 5, 6, 7, 8 }; Then which of the following will declare a pointer variable that points to the array in the sample declaration above?

int *(ptr [4]) = &A;
int (*ptr)[4] = &A;
int ( ptr *)[4] = &A;
int *ptr[4] = &A;
int (*ptr[4]) = &A;.

13.Which of the following function calculates the square of �X� in C?

sqr( X )
pow( 2, X)
pow( X, 2)
power( 2, X)
power( X, 2).

14.What does the declaration mean? float *(*a[5]) ( )[3];

Pointer to an array[3] of function returning an array[5] of float
Array[5] of pointer to function returning an array[3] of float
Pointer to an array[5] of function returning an array[3] of float
Array[3] of pointer to function returning an array[5] of float
Invalid declaration.

More C Programming QUESTIONS AND ANSWERS available in next pages

    Health is the greatest gift, contentment is the greatest wealth -Buddha
Opportunity is missed by most people because it is dressed in overalls and looks like work.- Thomas Edison