struct node
{
int data;
node* left;
node* right;
};
int secondlargest(struct node* a)
{
while(a->right != NULL){
secondlargest(a->right);
}
return a->data;
}
Nejsem schopen sledovat, kde jsem udělal chybu a proč to není pocházející z cyklu while.













