+ 1
How do i put number on constant
so there is this line const int x; how can i put in x what value that i want and i dont mean by this way: const int x = 30; // assume that i want 30
2 odpowiedzi
0
NVM i will use readonly
+ 3
Well, the point of a constant is that it cannot be reassigned a value once it is declared, so your second example is the only way that you could assign it a value.