C Programming Questions & Answers: part17



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

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

6.Which of the following is not valid where p1, p2 are pointers.

p1+3
p2-5
* p1 + * p2
p1+p2
p1-3.

7.Which of the following is a not a keyword in C language? #312. Which of the following is a not a keyword in C language?

void
volatile
sizeof
getchar
short.

8.How many union members can be initialized.

Only one member of a union at any one time
Any number of members of a union at one time
Union members can not be initialized
Only two members of a union at any one time
Only two members of a union at any time.

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

10.How much memory does the call malloc(10) allocate

10 bytes
20 bytes
no memory allocation
9 bytes
100 bytes.

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