• Skip to main content
  • Skip to primary sidebar
  • Skip to secondary sidebar
  • Skip to footer

Computer Notes

Library
    • Computer Fundamental
    • Computer Memory
    • DBMS Tutorial
    • Operating System
    • Computer Networking
    • C Programming
    • C++ Programming
    • Java Programming
    • C# Programming
    • SQL Tutorial
    • Management Tutorial
    • Computer Graphics
    • Compiler Design
    • Style Sheet
    • JavaScript Tutorial
    • Html Tutorial
    • Wordpress Tutorial
    • Python Tutorial
    • PHP Tutorial
    • JSP Tutorial
    • AngularJS Tutorial
    • Data Structures
    • E Commerce Tutorial
    • Visual Basic
    • Structs2 Tutorial
    • Digital Electronics
    • Internet Terms
    • Servlet Tutorial
    • Software Engineering
    • Interviews Questions
    • Basic Terms
    • Troubleshooting
Menu

Header Right

Home » C++ » C++ Array and Pointer

Write a C++ Program of Array of Structures

By Dinesh Thakur

[Read more…] about Write a C++ Program of Array of Structures

C++ -> operator

By Dinesh Thakur

When an element of a structure has to be accessed through pointer, then the → operator is used. It is essential to initialize the pointer before it accesses any structure element. [Read more…] about C++ -> operator

How to Referencing a structure

By Dinesh Thakur

Structure elements can be referenced by writing the structure variable before the structure element. The structure variable and the structure element are separated by a dot (.) which is called the dot operator. For example [Read more…] about How to Referencing a structure

Write C++ Example to illustrate two dimensional array implemented as pointer to a pointer.

By Dinesh Thakur

[Read more…] about Write C++ Example to illustrate two dimensional array implemented as pointer to a pointer.

Write C++ Illustrates the use of void pointers.

By Dinesh Thakur

[Read more…] about Write C++ Illustrates the use of void pointers.

Write C++ Illustrates array of pointers.

By Dinesh Thakur

[Read more…] about Write C++ Illustrates array of pointers.

Write C++ Illustrates the use of pointers and & operator

By Dinesh Thakur

[Read more…] about Write C++ Illustrates the use of pointers and & operator

Write C++ program illustrates multiplication of two matrices of order 2 * 3 and 3 * 2 respectively.

By Dinesh Thakur

[Read more…] about Write C++ program illustrates multiplication of two matrices of order 2 * 3 and 3 * 2 respectively.

Array C++ Binary Search.

By Dinesh Thakur

This method assumes that the set of elements in a list is first arranged in ascending or descending order. The list is initially divided into two parts and the mid point is found. If the number to be searched is less than the value of the element at the mid point, it implies that the given number lies in the first part of the list, otherwise the given number lies in the second part of the list. This is illustrated as follows: [Read more…] about Array C++ Binary Search.

Array C++ Linear Search

By Dinesh Thakur

The linear search procedure gives the method of finding whether an element is present in a set of elements (array) or not. The given element is compared with each element in the set one by one. The process is repeated until a perfect match is found. The array comprises of unsorted elements. [Read more…] about Array C++ Linear Search

Array C++ Insertion Sort

By Dinesh Thakur

Insertion Sort is a sorting technique based on the idea of inserting a new element in a set of given elements so that the resulting elements are also in sorted order. Suppose a set of 4 elements A[0], A[l], A[2], A[3] are to be sorted in ascending order. Initially sort A[0]and A[l] in ascending order. If A[l] is less than A[0], interchange their positions. Otherwise the positions of the elements remain the same. Next insert A[2] in the appropriate position so that the resulting array A[0], A[l] and A[2] remain sorted. The process is repeated in this manner. [Read more…] about Array C++ Insertion Sort

Array C++ Selection Sort

By Dinesh Thakur

In this method, the smallest item in a given series of n elements is found and is placed in the first position. Then the smallest item from the remaining (n-l) elements is found and is placed in the second position and so on. This method requires (n-l) passes for arranging n elements. [Read more…] about Array C++ Selection Sort

Array C++ Bubble sort

By Dinesh Thakur

In Bubble sort, two consecutive elements in a given list are compared and their positions in the given list (array) are interchanged in ascending or descending order as desired. Consider the following series of numbers, which are to be arranged in ascending or descending order. The series of numbers to be arranged are presented in the form of an array. The input array has the following form: [Read more…] about Array C++ Bubble sort

C++ Const Declaration for the size of an array

By Dinesh Thakur

[Read more…] about C++ Const Declaration for the size of an array

C++ Declaration of One Dimensional Arrays

By Dinesh Thakur

Arrays are declared as follows: [Read more…] about C++ Declaration of One Dimensional Arrays

How to Declaring Array of Structures in c++

By Dinesh Thakur

An array of structures refers to an array in which each element is of structure type. To declare an array of structures, firstly, a structure is defined and then an array of that structure is declared. The syntax for declaring an array of structures is [Read more…] about How to Declaring Array of Structures in c++

How to Declaring Nested Structures in c++

By Dinesh Thakur

Like other user defined data types, a structure can also include another structure, as its member, in its definition. A structure defined within another structure is known as a nested structure. [Read more…] about How to Declaring Nested Structures in c++

How to Declaring and Accessing Structure Variables in c++

By Dinesh Thakur

A structure can be used in a program only if memory is allocated to it. The structure definition informs the compiler about the type and the number of data members in the structures. However, it does not allocate any memory for the structure. To use a structure in a program efficiently, a structure variable needs to be declared. The syntax for declaring a structure variable is [Read more…] about How to Declaring and Accessing Structure Variables in c++

Defining Structures in C++

By Dinesh Thakur

Like arrays, structures are also used to store a list of data items in a single variable. However, these data items may be of different data types. Structures are used whenever a programmer requires binding the same or different types of related data items together into a single entity. [Read more…] about Defining Structures in C++

Multi-Dimensional Arrays in c++

By Dinesh Thakur

Multi-dimensional arrays can be described as ‘arrays of arrays’, that is, each element of the array is itself an array. A multi-dimensional array of dimension n is a collection of items that are accessed with the help of n subscript values. [Read more…] about Multi-Dimensional Arrays in c++

Single-Dimensional Arrays in c++

By Dinesh Thakur

A single-dimensional array is the simplest form of an array that requires only one subscript to access an array element. Like an ordinary variable, an array must have been declared before it is used in the program. The syntax for declaring a single-dimensional array is [Read more…] about Single-Dimensional Arrays in c++

Difference between Structures and Unions

By Dinesh Thakur

Both the structures and unions are syntactically and functionally same, however, they differ in the way memory is allocated to their members. While declaring structure variables, the different members are stored in different, although, adjacent memory locations whereas different members of a union variable share the same memory location. The amount of memory sufficient to hold the largest member of a union is allocated to a union variable. Thus, a union enables the same block of memory to store variable of one type at one time and of different type at another time. To understand the concept of memory allocation to a union, consider these statements. [Read more…] about Difference between Structures and Unions

Write A C++ Program Using Array Of Objects To Display Area Of Multiple Rectangles.

By Dinesh Thakur

[Read more…] about Write A C++ Program Using Array Of Objects To Display Area Of Multiple Rectangles.

Write A C++ Program Using Reference Variable To Create Dynamic Objects.

By Dinesh Thakur

[Read more…] about Write A C++ Program Using Reference Variable To Create Dynamic Objects.

Write A C++ Program To Depict Working Of Constructor & Destructor In Operations Performed Dynamically.

By Dinesh Thakur

[Read more…] about Write A C++ Program To Depict Working Of Constructor & Destructor In Operations Performed Dynamically.

Write A C++ Program To Depict Use Of New & Delete Operators.

By Dinesh Thakur

[Read more…] about Write A C++ Program To Depict Use Of New & Delete Operators.

Write A C++ Program To Assign The Public Object Member Address To A Pointer.

By Dinesh Thakur

[Read more…] about Write A C++ Program To Assign The Public Object Member Address To A Pointer.

Write A C++ Program For Using Class Pointer And Class Array Together.

By Dinesh Thakur

[Read more…] about Write A C++ Program For Using Class Pointer And Class Array Together.

Write A C++ Program For Adding Rational Numbers & Display OUTPUT As Numerator / Denominator.

By Dinesh Thakur

[Read more…] about Write A C++ Program For Adding Rational Numbers & Display OUTPUT As Numerator / Denominator.

Write A C++ Program To Incrementing And Decrementing An Object Pointer

By Dinesh Thakur

[Read more…] about Write A C++ Program To Incrementing And Decrementing An Object Pointer

Next Page »

Primary Sidebar

C++ Tutorials

C++ Tutorials

  • C++ - Data Types
  • C++ - Operators Types
  • C++ - CPP Program Structure
  • C++ - Conditional Statements
  • C++ - Loop
  • C++ - do-While Loop
  • C++ - Control Statements
  • C++ - Tokens
  • C++ - Jump Statements
  • C++ - Expressions
  • C++ - Constants
  • C++ - Character Set
  • C++ - Iteration Statements
  • C++ - I/O Statements
  • C++ - String
  • C++ - Manipulators

C++ Operator

  • C++ - Input/Output Operator
  • C++ - Operator Overloading

C++ Functions

  • C++ - Functions
  • C++ - Member Functions
  • C++ - Returning Object from Function
  • C++ - Call by Value Vs Reference
  • C++ - Friend Function
  • C++ - Virtual Function
  • C++ - Inline Function
  • C++ - Static Data Members
  • C++ - Static Member Functions

C++ Array & Pointer

  • C++ - Array
  • C++ - Array of Objects
  • C++ - Arrays as Class Members
  • C++ - Vector
  • C++ - Pointer
  • C++ - 'this' Pointer

C++ Classes & Objects

  • C++ - Class
  • C++ - Program Structure With Classes
  • C++ - OOP’s
  • C++ - Objects as Function Arguments
  • C++ - Procedure Vs OOL
  • C++ - Object Vs Class
  • C++ - Creating Objects
  • C++ - Constructors
  • C++ - Copy Constructor
  • C++ - Constructor Overloading
  • C++ - Destructor
  • C++ - Polymorphism
  • C++ - Virtual Base Class
  • C++ - Encapsulation

C++ Inheritance

  • C++ - Inheritance
  • C++ - Multiple Inheritance
  • C++ - Hybrid Inheritance
  • C++ - Abstraction
  • C++ - Overloading

C++ Exception Handling

  • C++ - Exception Handling
  • C++ - Templates
  • C++ - Standard Template Library

C++ Data Structure

  • C++ - Link List

C++ Programs

  • C++ Program for Electricity Bill
  • C++ Program for Multiply Matrices
  • C++ Program for Arithmetic Operators
  • C++ Program For Matrices
  • C++ Program for Constructor
  • C++ Program Verify Number
  • C++ Program Array Of Structure
  • C++ Program to find Average Marks
  • C++ Program Add And Subtract Matrices
  • C++ Program Menu Driven
  • C++ Program To Simple Interest
  • C++ Program To Find Average
  • C++ program exit()
  • C++ Program Using Array Of Objects
  • C++ Program Private Member Function
  • C++ Program To Reverse A String
  • C++ Program to Operator Overloading

Other Links

  • C++ - PDF Version

Footer

Basic Course

  • Computer Fundamental
  • Computer Networking
  • Operating System
  • Database System
  • Computer Graphics
  • Management System
  • Software Engineering
  • Digital Electronics
  • Electronic Commerce
  • Compiler Design
  • Troubleshooting

Programming

  • Java Programming
  • Structured Query (SQL)
  • C Programming
  • C++ Programming
  • Visual Basic
  • Data Structures
  • Struts 2
  • Java Servlet
  • C# Programming
  • Basic Terms
  • Interviews

World Wide Web

  • Internet
  • Java Script
  • HTML Language
  • Cascading Style Sheet
  • Java Server Pages
  • Wordpress
  • PHP
  • Python Tutorial
  • AngularJS
  • Troubleshooting

 About Us |  Contact Us |  FAQ

Dinesh Thakur is a Technology Columinist and founder of Computer Notes.

Copyright © 2025. All Rights Reserved.

APPLY FOR ONLINE JOB IN BIGGEST CRYPTO COMPANIES
APPLY NOW