Answered step by step
Verified Expert Solution
Link Copied!

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)

image text in transcribed
image text in transcribed
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

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions