c function returns 2 values but only 1 is passed to the statement
Clash 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);
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.
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