i have some general questions about c and memory
if i go
is that a string literal and do string literals and ints go on the memory stack and mallocs on the heap?
char *buff = "timmy";
is the stuff on the stack in ram ?
int i =0;
char* buff = "timmy";
char *ptr = NULL;
ptr = malloc(sizeof(char)*50);
is the difference between the stack and the heap is that the stack is ordered and heap is potentially fragmented ( sorry but i gotta know )?
when i call a function in main called loadFile
is loadfile now on the stack, and say that loadfile changes the value of fp and someint,
now fp anf someint are also on the stack and the value at that memory location is
loadfile(FILE *fp,char *,int * x)