I'm new to c programming, but my main concern is the memory management?
How? When? Why? should I allocate memory?
Do I need to allocate memory for i?Code:int i;
when I use pointers to structs I do as above, but is it only for pointers I need to allocate memory?Code:struct some_type *p; p = (some_typ *)malloc(sizeof(p));