C Programming and Technical Programming Definition

Q. What is static memory allocation?

A. Compiler allocates memory space for a declared variable. By using the address of operator, the reserved address is obtained and this address is assigned to a pointer variable. This way of assigning pointer value to a pointer variable at compilation time is known as static memory allocation.

Read Solution (Total 0)

C Other Question

Q. Are pointers integer?

A. No, pointers are not integers. A pointer is an address. It is a positive number.
Q. What is dynamic memory allocation?

A. A dynamic memory allocation uses functions such as malloc() or calloc() to get memory dynamically. If these functions are used to get memory dynamically and the values returned by these function are assigned to pointer variables, such a way of allocating memory at run time is known as dynamic memory allocation