spaghetti3451
- 1,311
- 31
Any method (within a C++ class) that prints to a file or to a screen has a return type of void. What role does the keyword void perform?
It indicates to the compiler that the method does not return a value.failexam said:Any method (within a C++ class) that prints to a file or to a screen has a return type of void. What role does the keyword void perform?