Can someone help me convert this line to an if-else statement?
temp = head->left ? head->left : head->right;
Thanks!
if (head->left) { temp = head->left; } else { temp = head->right; }
if ( head->left ) temp = head->left; else temp = head->right;