+ 3
Void basically means "empty". When used as the return type, it indicates that the function doesn't return any value. void printSquare(int n) { cout << n*n; } If used in the parameter field, it means that the function doesn't take any parameter. int getAnswer(void) { return 42; }
16th Oct 2016, 11:31 AM
Zen
Zen - avatar