Examveda
Examveda

Assume a program contains a void function named displayName, which requires no formal parameters. Which of the following is a correct function prototype for this function?

A. displayName;

B. displayName(void);

C. void displayName;

D. void displayName();

E. void displayName(none);

Answer: Option D


Join The Discussion

Related Questions on Object Oriented Programming Using C Plus Plus

A default catch block catches

A. all thrown objects

B. no thrown objects

C. any thrown object that has not been caught by an earlier catch block

D. all thrown objects that have been caught by an earlier catch block