C Programming Questions & Answers: part9



Software Programming : C Programming QUESTIONS AND ANSWERS :: part9 : 1 to 5

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

1.Which of the following operator(s) has/have right to left associativity?

++
� �
+=
Both (opt1) and (opt2) above
All (opt1), (opt2) and (opt3) above.

2.The given statement FILE *fptr;

Defines a pointer to the pre-defined structure type FILE
Defines a pointer to the user-defined structure type FILE
Defines a pointer to the pre-defined data type FILE DESCRIPTOR
Creates a file with the name fptr
Creates a file pointed by fptr.

3.With the following declaration , the correct answer is enum rgb{red=-1, green, blue};

red= -1 green= -2 blue= -3
red= -1 green= 1 blue= 2
red= -1 green= 0 blue= 1
red= -1 green= 2 blue= 3
All the above alternatives are illegal declarations.

4.Which of the following is not a key word in �C�?

void
getchar
sizeof
short
volatile.

5.For the following input function scanf(�%d%*d%d�, &x, &y); if the values entered are 900 456 786. Then what will be the values of integer variables x, y.

900 456
456 786
900
900 786
Abnormal program termination.

More C Programming QUESTIONS AND ANSWERS available in next pages

    Health is the greatest gift, contentment is the greatest wealth -Buddha
Failure defeats losers, failure inspires winners.-Robert T. Kiyosaki