That's because C89 doesn't allow that. (Newer C versions, like C99, do.) C++ does, and it's highly encouraged to only declare variables once you need them. I'll show you:
#include<iostream>...
Type: Posts; User: CornedBee
That's because C89 doesn't allow that. (Newer C versions, like C99, do.) C++ does, and it's highly encouraged to only declare variables once you need them. I'll show you:
#include<iostream>...
Agree with oogabooga. Additionally, declaring everything up-front only makes it worse. Declare variables at the last possible position.