C Programming Questions & Answers: part12



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

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

11.The benefit of using enumeration data types in a program is

Program becomes shorter
Program becomes longer
Program is easy to understand
Program executes faster
Program become complex.

12.void foo (int x, int & y) { int c; c = x + y; y = 2 * c; x = 2 * x; } The declaration �void foo (int x, int & y)� is called a

Function body
Function type
Function stereotype
Function prototype
Function printtype.

13.void foo (int x, int & y) { int c; c = x + y; y = 2 * c; x = 2 * x; } �x� and �y� are called

Actual parameters
Local variables
Formal parameters
Local parameters
Global variables.

14.What is the value of �ptr� after the execution of the following code? int *const ptr = 5; Now if the address of �ptr� is 2000, then ptr-- is

4
1999
1998
3
Invalid.

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