Why am I getting this error: “data definition has no type or storage class”?
It looks like the line is outside the main() function. You can’t do that, because you can’t execute code outside functions. The only thing you can do at global scope is declaring variables. Just move it inside the main() or any other function, and the problem should go away. (PS: Take a look at this … Read more