c function returns 2 values but only 1 is passed to the statement

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



c function returns 2 values but only 1 is passed to the statement



Can you help me explain how this gives 3 as a result?


int main()




int k = fun(125, 35);


printf("%d",k);



return 0;



int fun(int x, int y)


if (y <= 1) return x;

else if (y > x / y) return fun(y, x / y);

else return fun(x / y, y);







Everyone can post the code into the question, newbies included. Just paste the code, select the code, click the code button. The code button looks like this:
– user3386109
4 mins ago







thanks i edited it.
– Zik Zik
1 min ago









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

How to determine optimal route across keyboard