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 inline function?

2 Answers  


How can I sort more data than will fit in memory?

0 Answers  


program to find the second largest word in a paragraph amongst all words that repeat more thn twice

4 Answers   CTS, iGate,


Can static variables be declared in a header file?

0 Answers  


Write a pro-gramme to determine whether the number is even or odd?

1 Answers  






who is the father of C Language?

20 Answers   CTS, UST,


Program to find larger of the two numbers without using if-else,while,for,switch

11 Answers   iNautix, Wipro,


design and implement a data structure and performs the following operation with the help of file (included 1000 student marks in 5 sub. and %also) 1.how many students are fail in all 5 subjects (if >35) 2. delete all student data those are fail in all 5 subjects. 3. update the grace marks (5 no. if exam paper is 100 marks) 4. arrange the student data in ascending order basis of marks. 5.insert double of deleted students with marks in the list.

0 Answers   TCS,


write a program that uses point of sale system. which are mainly used by retail markets, where the is a database inventory list, a slip should be printed for the customer. manage should be able to access what has been sold and what is left from stock?

1 Answers  


Explain Linker and Loader

5 Answers  


What is the difference between local variable and global variable in c?

0 Answers  


Write a program in C to convert date displayed in gregorian to julian date

0 Answers   HCL, Wipro,


Categories