Number Of Page View:100,000+/Months
LOGIN |New User


What is static memory allocation and dynamic memory allocation?
Information regarding static menmory allaocaion and dynamic memory allocation are given below:

Static memory allocation: 

The compiler allocates the required memory space for a declared variable.Using the address of operator,the reserved address is obtained and assigned to a pointer variable.most of the declared variable have static memory,this way is called as static memory allocation.
In tis memory is assign during compile time.

Dynamic memory allocation: 

For getting memory dynamically It uses functions such as malloc( ) or calloc( ).the values returned by these functions are assingned to pointer variables,This way is called as dynamic memory allocation.
In this memory is assined during run time.