Default Values in Function Parameters

This video tutorial explains how to pass default values to function parameters in c++.
You will learn what is meant by default values in function parameters, how to assign default values, what is the order to assign default values for function parameters.

source code for this tutorial

#include <iostream>

using namespace std;

void display(int x = 5  , int y = 30, int z = 10){

cout << "x is " << x <<endl;
cout << "y is " << y <<endl;
cout << "z is " << z <<endl;


int main()
    return 0;