C Programming Questions & Answers: part14



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

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

11.What is the return value of the following function if the function is called as int value = fun(6); int fun(int n) {if( n = = 1 || n = = 2) return 1; else return( fun(n-1) + fun(n-2) ); }

1
2
Syntax error
8
5.

12.What is the final value of a, if the initial values are b=20, c=21, d=15, a=1? a = d^b&c| b;

1
21
30
Syntax error
31.

13.What is the output of the following program? # include int main() { int a=10, b=11, c=13, d; d = (a=c, b+=a, c=a+b+c); printf(� %d�, d); return(0); }

34
50
Error
Garbage value
R value required.

More C Programming QUESTIONS AND ANSWERS available in next pages

    Health is the greatest gift, contentment is the greatest wealth -Buddha
A real entrepreneur is somebody who has no safety net underneath them. Henry Kravis