1 votes 1 votes I want to challenge the recursive question of gate 2019.Can u suggest what supporting document can be placed? GATE final-answer-key-gate-2019 gate-2019 + – mradul asked Feb 21, 2019 mradul 2.3k views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes 52 is correct answer because in return statement post increment is there so initially it will return 7 itself. iiitnaveen answered Feb 21, 2019 iiitnaveen comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes Are you talking about r();r(); r() ? you can just run it in your computer and see the output. mkagenius answered Feb 21, 2019 mkagenius comment Share Follow See 1 comment See all 1 1 comment reply mradul commented Feb 21, 2019 reply Follow Share no i am asking about the question whose answer shoulbe not print anything and terminate. 0 votes 0 votes Please log in or register to add a comment.
0 votes 0 votes @mkagenius, @iiitnaveen we are talking about the question in which there is condition while(n<0) , whether it will terminate or not. Kd555 answered Feb 21, 2019 Kd555 comment Share Follow See all 2 Comments See all 2 2 Comments reply vin101 commented Feb 21, 2019 reply Follow Share The simple logic is the first three options were outrightly wrong leaving us with the fourth option as closest to being correct.I understand under an exam situation people would have skipped it in worst case but it was only if you could not rule out the other three options also don't you feel a person say has marked prints binary in reverse should he also get marks for this question(and even not penalized). What if this question becomes the decider between you and this person. 1 votes 1 votes mradul commented Feb 21, 2019 reply Follow Share actually i want to challenge both question the nor gate and recursion 2 votes 2 votes Please log in or register to add a comment.
0 votes 0 votes Q26 Recursive program without termination will give runtime error stack overflow and program will stop because stack size over. So answer is no output and program will stop No option matching...Precise and sufficient. deltaNj answered Feb 22, 2019 deltaNj comment Share Follow See all 0 reply Please log in or register to add a comment.