You are viewing a single comment's thread. Return to all comments →
Can anyone give me a simple Explanation as to why Z became equal to A, the "11 11" without an increment operator postfix???
#include <iostream> using namespace std; int main() { int A = 10; int Z = 11; A = A; // 10 && 11 Z = Z; cout << "\nA ==" << A << endl; cout << "Z ==" << Z << endl; A = Z; // 11 && 10 Z = A; cout << "A ==" << A << endl; cout << "Z ==" << Z << endl; return 0; }
A ==10 Z ==11 ..... A ==11 Z ==11
Seems like cookies are disabled on this browser, please enable them to open this website
Say "Hello, World!" With C++
You are viewing a single comment's thread. Return to all comments →
Can anyone give me a simple Explanation as to why Z became equal to A, the "11 11" without an increment operator postfix???
A ==10 Z ==11 ..... A ==11 Z ==11