+ 3

What is the data type of an array called in C++?

What is the data type of an array called in C++?

9th Feb 2020, 7:05 PM
Electrons Sagar
Electrons Sagar - avatar
9 Antworten
+ 5
Jacob is right, array is a data structure and we can store any one of datatypes in it.
10th Feb 2020, 4:06 AM
Mandeep
Mandeep - avatar
+ 3
An array is a series of elements of the same type. int foo [5] = { 16, 2, 77, 40, 12071 };
9th Feb 2020, 9:08 PM
Pedro H.J
Pedro H.J - avatar
+ 3
vector
11th Feb 2020, 2:22 PM
Terminal_Phantom
Terminal_Phantom - avatar
+ 1
in addition to Pedro. An array can be any data-type https://code.sololearn.com/c0pZ497FgT23 In my example i have 3 array's with different data-types data-type a this is just one variable data-type b [] this is an array
9th Feb 2020, 9:28 PM
sneeze
sneeze - avatar
+ 1
An Array Is A derived Data Type ..........i.e It is a collection of variables of similar fundamental data types(eg. int, float, void, char)
10th Feb 2020, 2:08 PM
Electrons Sagar
Electrons Sagar - avatar
+ 1
Array must contans elements which related to same data type in C++
11th Feb 2020, 2:52 PM
Shoaib Farooq
Shoaib Farooq - avatar
0
Array is type of structure which is use to store continuous data in memory with it reference it can be of any type i.e. int char,float,etc; So array is basically use for more in a list of value input processing and in matrix type of problem.
10th Feb 2020, 4:03 PM
Abhishek Kumar
Abhishek Kumar - avatar
0
Array can be of any data type int,float,double,string
11th Feb 2020, 1:08 PM
Prisca Goodluck
Prisca Goodluck - avatar