Is there any way to declare a global variable in a local function instead declare it at the top?
My situation is that:
How can info[num] be declared as global variable?Code:struct data { int a; int b; } int main () { ...} int function () { // get an integer to variable "num" here struct data info[num]; }