What is the static memory allocation in C?

Static variable defines in one block of allocated space, of a fixed size . Once it is allocated, it can never be freed. Memory is allocated for the declared variable in the program. The address can be obtained by using ‘&’ operator and can be assigned to a pointer.

Sizin İçin Seçtik  What is dynamic memory allocation in C with example?

Leave a Reply

Your email address will not be published. Required fields are marked *