Strange question, but someone showed me this, I was wondering can you use the not ! operator for int in C++? (its strange to me).
#include u
The build-in ! operator converts its argument to bool. The standard specifies that there exists a conversion from any arithmetic type(int, char,.... float, double...) to bool. If the source value is 0 the result is true, otherwise it is false
!
bool
int
char
float
double
true
false