Hello,
I cannot understand your last post which explains about compile time and runrime allocation due to a small spelling mistake made.Now I understood that code to allocate memory for static variable and initialising it take place as soon as call to the function is made at the first time.Please explain me the next two lines in my question to you.
p=malloc(10);
p=malloc(n*2);
Thanks a lot
I cannot understand your last post which explains about compile time and runrime allocation due to a small spelling mistake made.Now I understood that code to allocate memory for static variable and initialising it take place as soon as call to the function is made at the first time.Please explain me the next two lines in my question to you.
p=malloc(10);
p=malloc(n*2);
Thanks a lot
Comment