+ 3

how to create constant arrays ? c++

21st Aug 2018, 4:44 PM
Țucu🇷🇴
Țucu🇷🇴 - avatar
3 ответов
+ 7
This creates a constant int array. const int num[] {10,20,30,40,50};
21st Aug 2018, 5:03 PM
Ipang
+ 4
syntax:- const variable_type array_name[size] = {array _ elements};
22nd Aug 2018, 6:24 AM
Md. Mubtashim Fuad
Md. Mubtashim Fuad - avatar
+ 1
With the help of const keyword
23rd Aug 2018, 9:09 AM
shruti chougule