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.
Home » Programming » C++ Programming » Page 4

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

Suryateja Pericherla 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 »

CPP program to calculate the fare for the passengers travelling in a bus

Suryateja Pericherla Categories: Others. No Comments on CPP program to calculate the fare for the passengers travelling in a bus

In this article we will learn to implement a CPP program to calculate the fare for the passengers travelling in a bus. We will write a C++ Program to calculate the fare for the passengers travelling in a bus.   When a Passenger enters the bus, the conductor asks “What distance will you travel?” On […]

Read the rest of this entry »

CPP program to calculate simple interest and compound interest

Suryateja Pericherla Categories: Others. No Comments on CPP program to calculate simple interest and compound interest

In this article we will learn to implement a CPP program to calculate simple interest and compound interest.   A program that computes the simple interest and compound interest payable on principal amount(in Rs.) of loan borrowed by the customer from a bank for a given period of time (in years) at specific rate of […]

Read the rest of this entry »

CPP program to print Hello World

Suryateja Pericherla Categories: Others. No Comments on CPP program to print Hello World

In this article we will learn to implement a CPP program to print Hello World. A C++ program is provided below to print Hello World! to the stdout (generally console).   Porgram is as follows: #include <iostream> using namespace std; int main() { cout<<"Hello, World!"; return 0; }   Output for the above program is […]

Read the rest of this entry »

CPP Programs for Interviews

Suryateja Pericherla Categories: Programs. 3 Comments on CPP Programs for Interviews

Here is a compilation of most frequently asked CPP programs for interviews. These programs are generally asked in technical rounds or coding rounds.   You are more than welcome to suggest other solutions for the below listed C++ programs. To suggest a solution, click the C++ program link and write your program / solution as […]

Read the rest of this entry »
Facebook
Twitter
Pinterest
Youtube
Instagram
Blogarama - Blog Directory