0
If i want a function to get input(s) from the user, how do i store the values into integers inside the int main() function?
it doesn't seem to cover this type of an operation in the course. so I'm not sure whether or not this is possible.
1 Odpowiedź
0
I can see three ways of doing it :
- Making global variables and storing the inputs inside
- Using the return value
- Passing a variable by reference in the parameters of the function