+ 1

Help in c++

Please help me. In c++ if int a=2, and int b=0. Which was a value of !a?

17th Dec 2017, 2:01 PM
Tchioffir Gautier
Tchioffir Gautier - avatar
6 Answers
+ 2
!a should be 0
17th Dec 2017, 2:37 PM
$¢𝐎₹𝔭!𝐨𝓝
$¢𝐎₹𝔭!𝐨𝓝 - avatar
+ 2
!b should be 1
17th Dec 2017, 2:39 PM
$¢𝐎₹𝔭!𝐨𝓝
$¢𝐎₹𝔭!𝐨𝓝 - avatar
+ 2
int a = 2; int b = 0; // !a is 0 // !b is 1
17th Dec 2017, 2:41 PM
Naveen Maurya
Naveen Maurya - avatar
+ 2
Thanks you very much for the reply
17th Dec 2017, 2:55 PM
Tchioffir Gautier
Tchioffir Gautier - avatar
+ 2
You're WELCOME!!!
17th Dec 2017, 2:56 PM
Naveen Maurya
Naveen Maurya - avatar
0
But I have another problem
17th Dec 2017, 2:57 PM
Tchioffir Gautier
Tchioffir Gautier - avatar