I solved the problem generated by the below code by removing
int but just out of interest why can you not redifine a data type.
Sure there is an obvious reason but i cant think of it right now.
I presume it is something about how the compiler works . Can
anyone give me an explanation please?
Code:#include<iostream> using namespace std; int main(void) { int x=5; cout << x << endl; int x=2; cout << x << endl; return(0); }