#include<stdio.h>
void main()
{
int a=100;
printf("%d",a);
int b=200; //Error
printf("%d",b);
}
I know that declaring b there causes error, but I want to know why?
I would also like to let you guys know that I've compiled this program using Turbo C++ 4.0 by Editor on Windows And the error that I got is "Declaration Not Allowed Here".