C Programming Questions & Answers: part15



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

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

1.The size of an int must be greater than or equal to that of a

long int
short int
float
double
char.

2.What is the result of the program? main(){int a = 1000, b = 1000; long int c = a * b; printf(�%ld�, c); }

1000000
10000
100000
Garbage value
1000.

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

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

4.What is the output of the following statements? int b=5,c=15,d=8,e=8,a; a=b>c?c>d?12:d>e?13:14:15; printf(�%d�,a);

13
14
15
16
Garbage value.

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

10 bytes
20 bytes
no memory allocation
9 bytes
30 bytes

More C Programming QUESTIONS AND ANSWERS available in next pages

    Health is the greatest gift, contentment is the greatest wealth -Buddha
A real entrepreneur is somebody who has no safety net underneath them. Henry Kravis