Computer Sciences > GATE 2023 > Programming
Consider the C function foo and the binary tree shown.
When foo is called with a pointer to the root node of the given binary tree, what will it print?
A
11 10 13 3 8 5
B
11 13 3 5 8 10
C
24 50 13 3 8 16
D
24 13 50 16 8 3

Correct : d

Similar Questions

The integer value printed by the ANSI-C program given below is _______.
#970 Fill in the Blanks
Consider the following program: Which one of the following options represents the activation tree corresponding to the main function?
#971 MCQ
A palindrome is a word that reads the same forwards and backwards. In a game of words, a player has the following two plates painted with letters. From...
#1 MCQ

Related Topics

C function foo binary tree traversal GATE Computer Science 2023 GATE CS 2023 Q50 C code analysis data structures algorithms tree printing output recursive function tree

Unique Visitor Count

Total Unique Visitors

Loading......