if (belly_is_not_full( chocolate ) && belly_is_not_full( peanut_butter ) )
burp();
if (belly_is_not_full( chocolate ) & belly_is_not_full( peanut_butter ) )
burp();
$ cat test.cpp
#include <iostream>
#include <string>
int main(char ** argv, int argc)
{
int i = 2 && 3;
std::cout << i << std::endl;
}
$ g++ test.cpp
$ ./a.out
1