I am learning
cs50 through EdX. In week2-lec1, while explaining user defined functions, Prof David used
void along with the function
GetPositiveInt as arg.
void is used for functions, not returning any value, but just doing something why was it used? This function was returning the value of
n to the main function. I'd also like to know where in the code it was used.