In C (basic) I have two void functions. In the first function I scanf for the user to input an integer. I would like to use this integer in the second void, but I get the error "is used uninitialized in this function". I understand this may be because the variable is not constant over the two functions. Is there a way to get around this?
Thank you!