Skip to content

Files

Latest commit

 

History

History

40

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

Exercise 6.40

Which, if either, of the following declarations are errors?

(a)

int ff(int a, int b = 0, int c = 0);

(b)

char *init(int ht = 24, int wd, char bckgrnd);

Solution

(b) is an error, because all parameters after the first default argument parameter must also be default argument parameters.