Question 91
In Call by Reference parameter passing mechanism in C++ -
Call by Reference passes aliases/addresses (& arg), enabling functions to modify actual calling scope variables.
In Call by Reference parameter passing mechanism in C++ -
Call by Reference passes aliases/addresses (& arg), enabling functions to modify actual calling scope variables.
What is a 'Recursive Function'?
Recursion occurs when a function invokes itself until reaching a terminating base condition.
What essential component MUST be present in a recursive function to prevent infinite recursion and stack overflow?
The Base Case provides a non-recursive termination branch that stops function call stacking.
Which storage class in C preserves variable values across multiple function calls throughout program execution?
Static local variables retain their assigned values between function invocations instead of being reinitialized.
Which default storage class is assigned to local variables declared inside a C function body?
Local variables inside function bodies default to the 'auto' (automatic) storage class.