🔄 Overloading & Recursive Call Stacks
C++ supports Function Overloading, allowing multiple functions to share the exact same name as long as their parameter lists (signatures) differ.
🌀 Understanding Recursion & Stack Frames
A Recursive Function is a function that calls itself to solve smaller subproblems until it reaches a Base Case.
Every recursive call creates a new Stack Frame on the CPU call stack storing local variables and return addresses.
💻 Code Example: Overloading & Factorial Recursion
Microsoft Windows [Version 10.0.22631.3007] (Windows 11 Pro x86_64)
(c) Microsoft Corporation. All rights reserved.
C:\Users\Student\CPP_Project>#include <iostream>
🛠️ Execution Output on ⊞ Windows 11 CMD:
Microsoft Windows [Version 10.0.22631.3007] (Windows 11 Pro x86_64)
(c) Microsoft Corporation. All rights reserved.
C:\Users\Student\CPP_Project>Int Add: 15