+ 2
can arrays be declared with all data types (int float string char) ??
thnks
3 Respuestas
+ 9
Yes. You can have integer array, floating point arrays, string array, character arrays, boolean arrays, even arrays of your own structures.
0
use structures so that all data types can be used
0
no, you can't declare all date types in single array. use structures insted or special classes, <map> for example.