¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita0
why we use return in this prog. #include <iostream> using namespace std; int timesTwo(int x) { return x*2; } in
1 Respuesta
+ 1
The function parameters here are passed by value. If you don't use return, your function won't do anything.