Floating Point Issues on C related Questions and Answers - Page 3

Question 21 : The binary equivalent of 5.375 is
1. 101.1011101
2. 101.011
3. 101011
4. None of above
View Answer   Discuss with Members

Question 22 : We want to round off x, a float, to an int value, The correct way to do is
1. y = (int)(x + 0.5)
2. y = int(x + 0.5)
3. y = (int)x + 0.5
4. y = (int)((int)x + 0.5)
View Answer   Discuss with Members

Question 23 : What will you do to treat the constant 3.14 as a long double?
1. use 3.14LD
2. use 3.14L
3. use 3.14DL
4. use 3.14LF
View Answer   Discuss with Members


View 21 - 24 of 24 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