Back to Browse

Gate 2015 pyq C Programming | Consider the following recursive C function. If get(6) function.

239 views
Nov 3, 2022
19:27

Consider the following recursive C function. If get(6) function is being called in main() then how many times will the get() function be invoked before returning to the main()? void get (int n) { if (n less_than 1) return; get(n-1); get(n-3); printf("%d", n); } (A) 15 (B) 25 (C) 35 (D) 45

Download

1 formats

Video Formats

360pmp452.4 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Gate 2015 pyq C Programming | Consider the following recursive C function. If get(6) function. | NatokHD