I'm learning C and i'm trying to do the following:
- create a structure
table
from a function - return
pointer
to the newly createdtable
typedef of table: typedef char table [8][8];
So, I created this function:
table* create_table() {
table o;
return &o;
}
But i get an error from compiler saying that I'm returning address of a local variable.
How do I do t o create a table
from the function and then return the pointer.