C. Where are local variables, dynamic allocated variables, global variables stored?
Answers
Answered by
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