When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

what is c?

4 Answers   IBM, TCS,


how to use enum datatype?Please explain me?

3 Answers   Excel,


Find greatest number out of 10 number without using loop.

5 Answers   TCS,


How do I declare an array of N pointers to functions returning pointers to functions returning pointers to characters?

2 Answers  


. A database table called PERSON contains the fields NAME, BASIC and HRA. Write a computer program to print a report which employee name and total salary for those employees whose total salary is more than 10,000. Total Salary = BASIC + HRA. At the end, the program should also print the total number of employees whose total salary is more than 10,000.

1 Answers  






Write a program that receives as input a number omaadel-n-print, four digits.

0 Answers  


What do you mean by a local block?

0 Answers   InterGraph,


How can I call fortran?

0 Answers  


Given an array of numbers, except for one number all the others occur twice. Give an algorithm to find that number which occurs only once in the array.

6 Answers  


without using arithmatic operator convert an intger variable x into x+1

3 Answers  


what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)

0 Answers  


Convert the following expression to postfix and prefix (A+B) * (D-C)

3 Answers   Satyam,


Categories