0
C problem -
Why I can't get desired output with my code? Which mistake I did in this code? Please help. https://code.sololearn.com/c9WUIJghbij7/?ref=app
2 Respuestas
+ 5
Kiran Ghorpade
Because you cannot pass value as a reference and also you have just returned value but didn't assign to any variable.
get_num(i) //wrong
i = get_num(); //right
https://code.sololearn.com/c7OpFijJ2Lqb/?ref=app
+ 1
Thank you so much. 🙏🙏