Question: Procedure A has static depth 3 and defines a variable which is visible in a nested subprocedure B . The nesting depth between procedure A
ProcedureAhas static depth 3 and defines a variable which is visible in a nested subprocedureB. The nesting depth between procedureAand procedureBis 1 (that is,Bis directly nested insideA). What is the static depth ofB?
3
1
4
2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
