:: C Language Interview Questions ::

Click on >> (Arrow for More Questions) 

  Answer/Explaination : 

I hate U


(Exp):
For floating point numbers (float, double, long double) the values cannot 
be predicted exactly. Depending on the number of bytes, the precession with of the value
represented varies. Float takes 4 bytes and long double takes 10 bytes. So float stores 0.9 
with less precision than long double.
Rule of Thumb: 
Never compare or at-least be cautious when using floating point numbers 
with relational operators (== , >, <, <=, >=,!= ) .
 
 

Next >>

 
 

Quick Links

| Home | C Language | All India Entrances | Previous Year Papers | Software Projects

| Project Reports | Job Alerts & Notifications | Technical Interview Questions |

| Audio Visual Notes |