I just started c and have lots of trouble with simple statements.
I got "Declaration is not allowed here in function main"
for the following code:
int main() {
int a;
int *b;
*b = 5;
int c; //error occured here, if I get rid of this line,
//code is fine
return 0;
}
I got "Declaration is not allowed here in function main"
for the following code:
int main() {
int a;
int *b;
*b = 5;
int c; //error occured here, if I get rid of this line,
//code is fine
return 0;
}