this is the code in vs in c++:
int main(){
int hi = 5;
int arr[hi]{};
}
the Error :
Error(active) E0028 expression must have a constant value
the same code in code::Blocks :
int main() {
int hi = 5;
int arr[hi]{};
}
the Error :
there is no Error
so I want to run this code normally in vs without changing anything in the syntx
thank you 🙂
New contributor
the ghost is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.