Question: print(root,3) output? struct node { int data; struct node *left, *right; int count = 0; void print(struct node *root, int k) { if (root !=
struct node { int data; struct node *left, *right; int count = 0; void print(struct node *root, int k) { if (root != NULL && count right, k); count++; if (count == k) printf("%d", root->data): print(root->left, k)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
