Why does this code work in C but not in C++?
int i = 5; int i; // but if I write int i = 5; again I get error in C also int main(){ // using i } <
int i = 5; int i; // but if I write int i = 5; again I get error in C also int main(){ // using i }
To understand tentative definition better, go through this