+ 1
const int N= 5; int a[N]; did I can change the value of N?
this is declare for a function top up my main function, but I want cin>>N,not const N=5, so want can I do to change the value of N in main function?help me!
2 ответов
+ 2
no .
whats point in writing constant then???
0
constants can't change since n is an int say int n cin >> n and n can change through the program if needed