Asked • 03/18/19

What happens when you logical not a float?

I assume this just returns an int. Is there anything else going on I should be aware of? C/C++ differences? float a = 2.5; !a; // What does this return? Int? Float?

1 Expert Answer

By:

Tridip C. answered • 08/09/20

Tutor
4.9 (332)

5+ years of Experience in Programming in C/C++

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.