struct node
{
int data;
node* left;
node* right;
};
int secondlargest(struct node* a)
{
while(a->right != NULL){
secondlargest(a->right);
}
return a->data;
}
Nie jestem w stanie śledzić gdzie zrobiłem błąd i dlaczego jej nie wychodzi z pętli while.













