+ 2

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

thnks

14th Jul 2017, 8:52 AM
RiGeL
RiGeL - avatar
3 Answers
+ 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
Hot today
.
1 Votes
What?
0 Votes
HTML
0 Votes
Web
0 Votes
Quiz duel
0 Votes
FRC Coding?
1 Votes
help
0 Votes
AI
2 Votes
APIs
1 Votes