c++ not operator code example
Example 1: c++ .* operator
The .* operator is used to dereference pointers to class members.
Example 2: Not c++
#include<iostream>
using namespace std;
int main(){
int a;
cin>>a;
if(!((a >= 20 && a <= 30) || (a > 0 && a < 10))){
cout<<"Dentro!";
}
else{
cout<<"Fuori!";
}
}
Example 3: using of and || c++
x = y = z = 5;
Example 4: operand-- c++
++x;
x+=1;
x=x+1;
Example 5: x += c++
int main ()
{
int a, b=3;
a = b;
a+=2; // equivalent to a=a+2
cout << a;
}