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.

4th May 2017, 5:59 PM
K1llJ0Y
K1llJ0Y - avatar
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
4th May 2017, 9:14 PM
Toky R.
Toky R. - avatar