Game Guides > Game FAQ >  

Why function should return a value

Why function should return a value
Not all functions return values. If you take a function which is of type void, you get a function which is does not return anything. The only functions which should return values are those which are used as a right side of expressions (so called rvalues).