C Programming Questions & Answers: part15



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

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

6.How many union members can be initialized?

Only one member of a union at 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.

7.With every use of a memory allocation function, what function should be used to release allocated memory, which is no longer needed? #282. With every use of a memory allocation function, what function should be used to release allocated memory, which is no longer needed?

unalloc()
dropmem()
dealloc()
release()
free() .

8.Which of the following is not a correct variable type?

float
real
int
double
long.

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

10.What number would be shown on the screen after the following statements of C code are executed? char ch;int i;ch= �g�;i=ch-�a�; printf(�%d�,i);

6
7
8
9
5.

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