564 views
0 votes
0 votes

in this question for foo it will be called with same value again and again  which will result in stack overflow

similar will be happening with bar also as it will be called with value 2 , I am unable to understand why ans is given C ,please explain in some details @Rishab Gupta_2 sir

Please log in or register to answer this question.

Related questions

1.0k
views
2 answers
3 votes
Manikant Kumar asked Sep 19, 2016
1,022 views
#include<stdio.h> main() { char *s="Manikant"; int i=0; printf("%s",s+s[2]-s[4]); // Line-1 printf("\n%d",printf("GATE-2017")); //Line-2 ... n%c%d",s[i++],i); //Line-3 } What is output of Line-1 , Line-2 and Line-3 ?
110
views
0 answers
0 votes
Maxine asked Apr 3
110 views
Write a monitor to solve the consumer-producer problem. Thebasic program structure is shown as follows.monitor ProducerConsumer {int in, out, count;Item ... {ProducerConsumer.get(next_consumed);/* consume the item in next_consumed */}
173
views
1 answers
0 votes
miguelcruz100 asked Dec 13, 2023
173 views
does anyone know how to answer this , my professor said that the answer is the followinga.) Not safe. Processes P2 , P1 , and P3 are able to ... completely different answercan someone please explain to me what im doing wrong for both parts
274
views
1 answers
0 votes
phaniphani asked Nov 16, 2023
274 views
is it allowed in a B+ tree, while deletion to leave behind a key in internal nodes while deleting it from the leaf ?