C Programming Questions & Answers: part17



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

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

1.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).

2.----------operator is used to access structure members

&
*
.
+
-.

3.what is the output of the following program #include int c[10]={1,2,3,4,5,6,7,8,9,10}; main(){ int a,b=0; for(a=0;a<10;++a) if(c[a]%2==1) b+=c[a]; printf(�%d�,b); }

20
24
25
30
35.

4.Explain the following int (*pf)( char *a,char * b)

pf is function that accepts two characters as arguments and returns an integer
pf is a pointer to a function that accepts two pointers to characters as arguments and returns an integer.
pf is pointer to a function that accepts two characters as arguments and returns an integer.
pf is a data type that accepts two integers as arguments and returns an integer
not valid statement.

5.Which of the following is equivalent to for (expr1;expr2;expr3)

while(expr1){ expr2; statement; expr3;}
expr1; while(expr2){statement; expr3;}
while(expr2) {expr1; statement; expr3;}
expr2; while(expr3){expr2; statement; expr1;}
while(expr3) {expr1; statement; expr2;}.

More C Programming QUESTIONS AND ANSWERS available in next pages

    Health is the greatest gift, contentment is the greatest wealth -Buddha
If your ship doesn’t come in, swim out to meet it!-Jonathan Winters