Startertutorials Blog
Tutorials and articles related to programming, computer science, technology and others.
Subscribe to Startertutorials.com's YouTube channel for different tutorial and lecture videos.

Cpp program to illustrate function overloading by adding two numbers

Categories: Functions. No Comments on Cpp program to illustrate function overloading by adding two numbers

In this article we will learn to implement a Cpp program to illustrate function overloading by adding two numbers. A C++ program is provided below to demonstrate function overloading by adding different types of numbers.   Subscribe to our monthly newsletter. Get notified about latest articles, offers and contests. Email address: Leave this field empty […]

Read the rest of this entry »

CPP program to demonstrate the use of default arguments

Categories: Functions. No Comments on CPP program to demonstrate the use of default arguments

In this article we will look at implementing a CPP program to demonstrate the use of default arguments. A C++ program is provided below to illustrate the use of default arguments for simple interest function. Program is as follows: #include <iostream> using namespace std; float si(int p, int n, int r=5) { return (p*n*r)/100; } […]

Read the rest of this entry »

CPP program to illustrate function overloading

Categories: Functions. No Comments on CPP program to illustrate function overloading

In this article we will learn to implement a CPP program to illustrate function overloading. A C++ program is provided below to demonstrate function overloading using 2 overloading functions for power.   Subscribe to our monthly newsletter. Get notified about latest articles, offers and contests. Email address: Leave this field empty if you’re human: Program […]

Read the rest of this entry »

CPP program to illustrate inline functions

Categories: Functions. No Comments on CPP program to illustrate inline functions

In this article we will learn to implement a CPP program to illustrate inline functions. A C++ program is provided below for demonstrating inline functions.   Subscribe to our monthly newsletter. Get notified about latest articles, offers and contests. Email address: Leave this field empty if you’re human: Program is as follows: #include <iostream> using […]

Read the rest of this entry »

Call By Value and Call By Reference Program in C++

Categories: Functions. No Comments on Call By Value and Call By Reference Program in C++

In this article we will learn how to implement call by value and call by reference program in C++. A program in C++ is provided to implement call by value and call by reference using reference variable. Program is as follows: #include <iostream> using namespace std; void swapval(int x, int y) { int temp; temp […]

Read the rest of this entry »