not_and_not
#include <iostream>
using namespace std;
void main()
{
int i = 10;
cout<<(!!i); //same as cout<<((bool)i). Realy the same for the same of the disassembly of the two kinds.
system("pause");
}
output is 0(if == 0) or 1(if != 0).
#include <iostream>
using namespace std;
void main()
{
int i = 10;
cout<<(!!i); //same as cout<<((bool)i). Realy the same for the same of the disassembly of the two kinds.
system("pause");
}
output is 0(if == 0) or 1(if != 0).