C plus plus programming
June 3, 2026 1 min read

Exploring Derived Data Types in C++: Functions, Arrays, and Pointers

HS
HEMANT SINGH
Technical Writer & Educator

There are three derived data types

  1. Function
  2. Array
  3. Pointer

Function

It is called block of statement.

void msg(){
	cout<<"Welcome to c++"<<endl;
}

Array

Collection of data having same data type.

int ages[5];

Pointer

It is a variable, which hold an address of other variable.

 

int a,*p;
a=100;
p=&a;

In this category