Computer Science, asked by bhavanapuli3402, 11 months ago

C. Where are local variables, dynamic allocated variables, global variables stored?

Answers

Answered by Anonymous
0

Answer:

Answer:

Global variables -------> data.

Static variables -------> data.

Constant data types -----> code.

Local variables (declared and defined in functions) --------> stack.

Variables declared and defined in main function -----> heap.

Pointers (for example, char *arr, int *arr) -------> heap.

Similar questions