Is there a difference in C++ between declaring a function with empty brackets - func() and with use of the void keyword - func(void)?
Explanation
There is no difference between the two versions in C++. But in C language if a function is declared with empty brackets as func() then the correspondence check on the types of its arguments is not performed (for bacward compatibility).

Следи за CodeGalaxy

Мобильное приложение Beta

Get it on Google Play
Обратная Связь
Cosmo
Зарегистрируйся сейчас
или Подпишись на будущие тесты