•Function
call with omitted parameters
–If not
enough parameters passed in by the caller,
the rightmost go to their defaults
–Default
values
•Can be constants, global variables, or function calls
•Set
defaults in function prototype
•
int
myFunc(int x=1,int y=2,int z=3);
–myFunc(3)
•x = 3, y
and z get defaults
(rightmost)
–myFunc(3, 5)
•x = 3, y
= 5 and z
gets default
•