Simple question for you guys:
Given the following struct:
When declaring an instance of nodeT as follows:Code:typedef struct mystruct { char *c; int i; } mystruct;
mystruct *s = malloc(sizeof(nodeT));
s->c = malloc(sizeof(char));
s->c = 'a';
s->i = 5;
Is i created/stored on the stack or the heap?