Which of the below statements are true about c programming language internal implementation of storing local variables?
i. all local variables will be stored in the stack.
ii. before storing local variables, it stores PC of previous function in the stack.
i & ii
none are true.
both local variables and PC (program counter) of previous function calling current function will be stored in this stack, because after finishing this function execution, control will return based on the PC pointer.
Back To Top