C Programming Questions & Answers: part14



Software Programming : C Programming QUESTIONS AND ANSWERS :: part14 : 6 to 10

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

6.Choose the correct output for the following given program. # include void fun(int a, int b, �) { int i=0, *p = &b; for( printf(� �); i++

1, 4,5,6,7,
Syntax error
1, 6,7,8,9,
Run time error
0, 5,6,7,8,

7.What is the exact meaning of the following statement? int *p(char *a [])

p is a function that accepts an argument which is an array of pointers to characters returns a pointer to an integer quantity
p is a pointer to function that accepts an argument which is an array of pointers to characters returns a pointer to an integer quantity
p is a function that accepts an argument which is a pointer to character array returns a pointer to an integer quantity
p is a pointer to function that accepts an argument which is an array of pointers to characters returns a pointer to character quantity
p is a function that accepts an argument which is an array of pointers to characters returns an integer quantity.

8.Write the last element of the following array. Char flag[]=�FALSE�

E
e
\0
� �
/0.

9.What is a difference between a declaration and a definition of a variable?

Both can occur multiple times, but a declaration must occur first
There is no difference between them
A definition occurs once, but a declaration may occur many times
A declaration occurs once, but a definition may occur many times
Both can occur multiple times, but a definition must occur first.

10.Which escape character can be used to begin a new line in C?

\a
\n
\l
\m
\t.

More C Programming QUESTIONS AND ANSWERS available in next pages

    Health is the greatest gift, contentment is the greatest wealth -Buddha
The only place where success comes before work is in the dictionary.- Vidal Sassoon