C Programming

How to allocate/free the memory in C & Dangling Pointer basics

This Doc is very useful for the learner who don’t know much about C. In general, we have two ways to allocate the memory in C Static memory allocation Dynamic memory allocation Static memory allocation: Static means “fixed – not changing”. To allocate this type of memory, we should know how much memory is needed […]