There are three derived data types
- Function
- Array
- 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;