Category: C++
  • Sort by:
  • Latest
  • Hottest
  • Popular
  • Random
Arrays in C++ with examples

Arrays in C++ with examples

Arrays in C++:- In C++ programming, Arrays are the collection of the consecutive memory locations with same name and similar address in a free store or heap. These collections of consecutive memory locations with similar name and address are called Arrays. Types of Arrays:- There are mainly two types which are as ...

READ MORE +
Array of Strings in C++ with examples

Array of Strings in C++ with examples

What are Strings:- The collection of the characters is called string. For Example:- 1. “London”. 2. “Austria”. 3. “Football”. 4. “Stadium “. Array of strings:- It contains a complete string at each index. In case of a Two-Dimensional array each complete string is stored in a unique row. Types of ...

READ MORE +
Functions and Arrays in C++ with examples

Functions and Arrays in C++ with examples

We can pass Arrays to the Functions as parameters. When we pass parameter to the calling function then only the address of first index of the array is passed. One should always remember that the Arrays are always passed by reference not by value, which means when we pass it, the new separate copy of the actual ...

READ MORE +
Sequential Search in C++ with examples

Sequential Search in C++ with examples

Searching in Arrays:- The process of finding the required data in an array is called searching. It is very useful when the size of an array is very large. Normally, there are two types of searching techniques used in C++. 1. Sequential search. 2. Binary search.   Sequential Search:- Sequential ...

READ MORE +
Continue, Break and Goto Statements in C++ with examples

Continue, Break and Goto Statements in C++ with examples

Statements of C++ Programming:- Following statements are used in C++, normally inside the loops. 1. Continue Statement. 2. Break Statement. 3. Goto Statement. Continue Statement:- Continue statement is used inside the loop when we normally there is no need to display the specific output until the condition ...

READ MORE +
Pointers in C++ with examples

Pointers in C++ with examples

The pointers in C++ are simple variables which is declared by using the asterisk sign before the variable. It is used to store the memory addresses of data members and arrays of different data types. The reference operator is used to access the address of a variable which is assigned to the pointer. Pointer ...

READ MORE +
Switch Statement in C++ with examples

Switch Statement in C++ with examples

The switch statement in C++ is a conditional structure. This statement is a really good alternative of nested if-else. It is used in a situation when there are several cases and we have to execute only one of them. It also uses to execute different conditions according to the input given by the user. This statement is ...

READ MORE +
Grab our Partner's Top Rated web hosting deal - Upto 90% off