Data Types and Operators on C related Questions and Answers - Page 2

Question 11 : Which of the following % operation is invalid?
1. 2 % 4;
2. 2 % 4l;
3. 2 % 4f;
4. Both 2 % 4l; and 2 % 4f;
View Answer   Discuss with Members

Question 12 : What is the sizeof(void) in a 32-bit C?
1. 0
2. 1
3. 2
4. 4
View Answer   Discuss with Members

Question 13 : Select the odd one out with respect to type?
1. char
2. int
3. long
4. float
View Answer   Discuss with Members

Question 14 : Which among the following has the highest precedence?
1. &
2. <<
3. sizeof()
4. &&
View Answer   Discuss with Members

Question 15 : In a 32-bit compiler, which 2 types have same size?
1. char and short
2. short and int
3. int and float
4. float and double
View Answer   Discuss with Members

Question 16 : How many digits are present after decimal in float value?
1. 1
2. 3
3. 6
4. 16
View Answer   Discuss with Members

Question 17 : Which among the following is never possible as an output for float?
1. 3.666666
2. 3.666
3. 3
4. None of the mentioned
View Answer   Discuss with Members

Question 18 : Loss in precision occurs for typecasting from____________
1. char to short
2. float to double
3. long to float
4. float to int
View Answer   Discuss with Members

Question 19 : Which of the following cannot be used inside sizeof?
1. pointers
2. functions
3. macro definition
4. none of the mentioned
View Answer   Discuss with Members


View 11 - 20 of 78 Questions

* Be the First to Post a Comment.

Submit comment :


Captcha Image
Reload

Ask Question

Captcha Image
Reload

Note : Name and Email never shown.





Subscribe


Become a part of EducationForever. Subscribe to our FREE Newsletter