default argument in c++

C++ allows  us to call a function with out specifying all its arguments in such cases the function assigns a  default value to the parameter which does not have a matching argument.

  • Default values are specified when the function is declared.
  • It is important that we must add default value from right to left.