What’s the reason for putting void inside of the params?
Why not just leave it blank?
void createLevel(void);
void createLevel();
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The
voidin the parenthesis are from C. In C a function with empty parentheses could have any number of parameters. In C++ it doesn’t make any difference.