1. | How many times the program will print "IndiaBIX" ?
|
|||||||
Answer: Option D Explanation: A call stack or function stack is used for several related purposes, but the main reason for having one is to keep track of the point to which each active subroutine should return control when it finishes executing. A stack overflow occurs when too much memory is used on the call stack. Here function main() is called repeatedly and its return address is stored in the stack. After stack memory is full. It shows stack overflow error. |
2. | What is the notation for following functions?
|
|||||||
Answer: Option C Explanation: KR Notation means Kernighan and Ritche Notation. |
3. | The keyword used to transfer control from a function back to the calling function is |
|||||||
Answer: Option D Explanation:
The keyword return is used to transfer control from a function back to the calling function. Example:
Output: |