Hi!
How can I create a struct using a separate function? Here is my dream:
Thank you!
How can I create a struct using a separate function? Here is my dream:
Code:
void createAny(Any* any)
{
any = (Any*) malloc(sizeof(Any));
printf("%0X ", any);
}
int main(){
Any* any = NULL;
printf("%0X ", any);
createAny(any)
printf("%0X ", any);
getchar();
return 0;
}
Thank you!