0

What is the difference between void display; () and void display (void);

Difference between functio declaration types

3rd Oct 2017, 3:45 AM
dhiman mishra
dhiman mishra - avatar
2 Answers
0
void display; () is not a function declaration; void display (void) is called function prototyping and the "void" in the arguments list tells the compiler that there are no arguments . The (void) Is pretty old and was used in c; today in c++ we simply leave it empty like this void display ();
3rd Oct 2017, 5:19 AM
Marco
Marco - avatar
0
difference void show and void display c++
1st Sep 2018, 10:48 AM
bassam lateef
bassam lateef - avatar