+ 2

can arrays be declared with all data types (int float string char) ??

thnks

14th Jul 2017, 8:52 AM
RiGeL
RiGeL - avatar
3 ответов
+ 9
Yes. You can have integer array, floating point arrays, string array, character arrays, boolean arrays, even arrays of your own structures.
14th Jul 2017, 8:58 AM
Hatsy Rei
Hatsy Rei - avatar
0
use structures so that all data types can be used
19th Mar 2018, 2:43 AM
Zeuz Krey
Zeuz Krey - avatar
0
no, you can't declare all date types in single array. use structures insted or special classes, <map> for example.
19th Mar 2018, 7:02 PM
Игорь Копылов
Игорь Копылов - avatar