[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

C Programming :: Declarations and Initializations - Discussion

Home > C Programming > Declarations and Initializations > MCQs Questions Discussion

18 / 54

Choose the correct option.

Integer division in a 'C' program results in

Atruncation

Brounding

Coverflow

Dnone of these

Answer: Option (Login/Signup)

Show Explanation

Its true answer is truncation. For example if we normally divide 3/2 we get 1.5



But in c language if we do integer division 3/2 we will only get 1 as the decimal values are removed by c compiler hence it truncates the value.

Asked In ::

Post Your Answer Here:     

Reply    
Rate This: +0 -0
    Report


Report Error

Please Login First Click Here

Reply    
Rate This: +0 -0
    Report


Report Error

Please Login First Click Here