Home > Back-end >  Why the value of r c + + to calculate the circumference of the circle area is zero
Why the value of r c + + to calculate the circumference of the circle area is zero

Time:10-06

Why is zero, calculation results is a question of float?

CodePudding user response:

The scanf ( "% f", & amp; R );//note that quotes

CodePudding user response:

my eyes ah ~

CodePudding user response:

Your compiler does not give you warning?
Behind the scanf inside with a specified to input parameters, fewer parameters, the compiler will have warning!

Can't ignore the compiler warnings to 0 to warn compilation

CodePudding user response:

Fun
reference 3 floor response:
your compiler does not give you warning?
Behind the scanf inside with a specified to input parameters, fewer parameters, the compiler will have warning!

Can't ignore the compiler warnings to 0 to warn compiled

Wow, really have no warning

CodePudding user response:

What the compiler senior, so this kind of problem without warning, too?? the
  • Related