i have a question on functions (void and return).
let's say i have function that reads an integer [read_num()]. should i use a return function [int read_num(int)] or a void with pass by reference [void read_num(int &)]?
does it make any difference or is it just preference?
what are the advantages and disadvantages of using void or return?