C Programming Questions & Answers: part6



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

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

1.The restriction with union is

The first member can only be initialized
The last member can only be initialized
Any member can be initialized
Union can not be initialized
No restriction at all.

2.The number of arguments for realloc( ) function is/are

0
1
2
3
Depends op on user choice.

3.What would be the output if the following program( let months.c ) is run using the following command line arguments? months Jan Feb Mar Apr void main( int no, char *m[ ] ) { while( no ) printf( �%s �, m[--no] ); }

Error
No output at all
Jan Feb Mar Apr
months Jan Feb Mar Apr
Apr Mar Feb Jan months.

4.What would be the output for the following Turbo C code? int I, A[ ] = { 1, 2, 3, 4, 5 }, *P; P = A;++*P;printf( �%d �, *P); P += 2; printf( �%d �, *P);

2 4
3 4
2 2
2 3
3 3.

5.Given b=110 and c=20, what is the value of �a� after execution of the expression a=b-=c*=5? #107. Given b=110 and c=20, what is the value of �a� after execution of the expression a=b-=c*=5?

10
450
110
-10
-110.

More C Programming QUESTIONS AND ANSWERS available in next pages

    Health is the greatest gift, contentment is the greatest wealth -Buddha
Innovation distinguishes between a leader and a follower.-Steve Jobs