Telecommunications Question:
Download Job Interview Questions and Answers PDF
Memory allocation of variables declared in a program is?
a) allocated in RAM.
b) allocated in ROM.
c) allocated on stack.
d) assigned to registers.
Answers:
Answer #1a)allocated in RAM.
stack memory is used at the time of dynamic memory allocation
ex:- malloc();
stack memory is used at the time of dynamic memory allocation
ex:- malloc();
Answer #2Dynamic memory allocation is carried out in the heap, which is RAM. Static memory allocation is carried out in the stack.
Download Telecommunications Interview Questions And Answers
PDF