Passing Standard Parameters to Generic Functions

This video tutorial explains how to pass parameters with standard data types to your generic function in c++ programming.
You are gonna learn how to define a generic function to take parameters with standard datatypes, how to use or call the generic function in your program when it takes parameters of standard datatypes in detail with example.

source code for this tutorial

#include <iostream>
using namespace std;
template <typename T> void display(T x, int y);

int main()
    display("anil shetty",8);
    return 0;

template <typename T> void display(T x, int y){
for(int counter = 1; counter <= y; counter ++){
   cout << x << endl;


Back To Top