I have the following code (as you will see im using the same template as earlier...:$
#include <cstdio>
#include <cstdlib>
#include <iostream>
using namespace std;
int main(int nNumberofArgs, char* pszArgs[])
{
int z = 1;
int x = 2;
int y = 3;
bool b;
b = (x < y) && (x > z);
cout << b;
system("PAUSE");
return 0;
}
When you run this code it returns 1. Im wondering why? I thought it would return the value of x since x is in both statements and yet it doesnt.