C Programming Questions & Answers: part6



Software Programming : C Programming QUESTIONS AND ANSWERS :: part6 : 6 to 10

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

6.What are the two predefined FILE pointers in C?

console and error
stdout and stdio
stdout and stderr
stdio and stderr
console and stdio.

7.What would be the correct way to cast �ptr� in the code above to be a pointer to a 3 element array of function pointers with a return value of int and a single parameter of a pointer to char?

( int ( ( * )[3] ) ( char * ) )ptr
( ( int * ) ( *[3] )( char * ) ) ptr
int *( [3]) ( * char * ) ptr
( int *( * )[3] ( char * ) )ptr
( int ( *( * )[3] )( char * ) )ptr.

8.When a function is recursively called all the automatic variables are stored in a

Stack
Queue
Array
Linked List
Register.

9.What is the base data type of a pointer variable by which the memory would be allocated to it?

Int
Float
No data type
Depends upon the type of the variable to which it is pointing
Unsigned int.

10.Which is the fundamental data type used to implement the enum data type?

char
int
float
double
any primary data type including user defined data type.

More C Programming QUESTIONS AND ANSWERS available in next pages

    Health is the greatest gift, contentment is the greatest wealth -Buddha
If you are not willing to risk the usual you will have to settle for the ordinary- Jim Rohn