+ 2
in c++ which operator has only one operand located at its right and the only thing that it does inverse the value of it
options:a)! b)&& c)|| d)scope resolution operator
3 Respostas
+ 3
Thats a) !
Eg :
bool a = false;
cout<<!a<<endl; //Prints 1.
+ 1
The '!' flips between true and false (0 and non zero), is an inversion of sorts for Boolean.
The '~' flips every bit in an int (including Boolean).
ie is is like doing a '!', but for each bit individually.
+ 1
tq😊