Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren+ 3
how to create constant arrays ? c++
3 Antworten
+ 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