What is the output of this C code?   #include int main() { float f = 0.1; if (f == 0.1) printf("True"); else printf("False"); } a) True b) False

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter6: Modularity Using Functions
Section6.1: Function And Parameter Declarations
Problem 8E: (Numerical) a. Write a C++ program that accepts an integer argument and determines whether the...
icon
Related questions
Question

What is the output of this C code?

 

#include <stdio.h>

int main()

{

float f = 0.1;

if (f == 0.1)

printf("True");

else

printf("False");

}

a) True

b) False

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr