I can in-order traverse a tree with the below code. But if want to return the in-order traversal from this function how can i do that?
void inorder(Node* root){
if(root==NULL){
return;
}
inorder(root->left);
printf("%d\n",root->data);
inorder(root->right);
}