Lowest price ever! Learn Generative AI for 48% less!
Get my discount+ 3
how to create constant arrays ? c++
3 Answers
+ 7
This creates a constant int array.
const int num[] {10,20,30,40,50};
+ 4
syntax:-
const variable_type array_name[size] = {array _ elements};
+ 1
With the help of const keyword