C Programming Questions & Answers: part15



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

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

11.Write the first line of the function definition for the following: �a function called add accepts two integer arguments and returns a floating point value�

float add(int ,int)
float add(int a,int b)
float add()
float add( int a,b)
float add(a,b int).

12.What is the output of the following statements? for(i=10;i++;i<15) printf(�%d�,i);

1011121314
101112131415
91011121314
101112131415
No output.

13.Describe the following array int s[5][6]

s is a two �dimensional 30 element array(6 rows, 5 columns)
s is a two �dimensional 30 element array(5 rows, 6 columns)
s is a one �dimensional 30 element array(5 rows, 6 columns)
s is a two �dimensional 30 element array(5 rows, 5 columns)
s is a one dimensional 30 element array (6 rows, 5 columns).

14.Which of the following is a complete function?

int funct();
int funct(int x) {return x=x+1;}
void funct(int) {cout<<"Hello"}
void funct(x) {cout<<"Hello"}
funct( );.

More C Programming QUESTIONS AND ANSWERS available in next pages

    Health is the greatest gift, contentment is the greatest wealth -Buddha
If you are not willing to risk the usual you will have to settle for the ordinary- Jim Rohn