Answered step by step
Verified Expert Solution
Question
1 Approved Answer
What is the output of executing the following function with parameters: root and 3 on tie ronuming tree? void functionl (struct node* root, int l)
What is the output of executing the following function with parameters: root and 3 on tie ronuming tree? void functionl (struct node* root, int l) \{ if ( root = NULL) retum; if (1=1) printf("\%\% " , root > data); else if (l>1) \{ functionl(root-left, 1-1); ; functionl(root-right, 11 ); ) Question 2 (10 Marks): What is the output of executing the following function with parameters: root and 3 on the following tree? void functionl(struct node* root, int l ) \{ if (root= NULL ) retum; if (1=1) printf("\% % " root->data); else if (l>1) \{ functionl(root->left, 11); functionl(root-right, l-1); 3
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started