C Programming Questions & Answers: part5



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

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

1.A function with no definition

Is an invalid function
Produces syntax error
Results into runtime error
Is allowed and is known as dummy function
Returns zero value.

2.Which operator from the following has the lowest priority? #92. Which operator from the following has the lowest priority?

Assignment operator
Division operator
Comma operator
Conditional operator
Unary-operator.

3.Identify the correct output of the following code: void main( ) { int w=10, x=5, y=3, z=3; if( (w

10 5 3 3
10 5 4 4
10 5 3 4
10 5 4 3
10 5 5 5.

4.The function scanf( ) returns

The actual values read for each argument
0
1
The number of successful read input values
ASCII value of the input read.

5.What is the result for the following declaration? int array[] = { 1, 2, 3, 4, 5 }; printf( �%d�, &array[4] - &array[0] );

4
-4
8
-8
Undefined as the address of the array is not given.

More C Programming QUESTIONS AND ANSWERS available in next pages

    Health is the greatest gift, contentment is the greatest wealth -Buddha
Too many of us are not living our dreams because we are living our fears.- Les Brown