0

int main() {

 int n;
 cin>>n;
 int a[n+5];
 for(int i=0;i<n;++i){
     cin>>a[i];
 }
 return 0;

}

The array named "a" is not showing in the debugger window. But if I change the declaration to "int a[100]" , its working.

  • See [here](https://stackoverflow.com/a/65429354/10470363). VLAs are not supported in the compiler you're using. – Visual Studio Jul 10 '21 at 20:47
  • It compiles without any problem. The issue is with debugger , whenever I try to check the array in variables tab , it wont show up. – Reshab Gupta Jul 11 '21 at 11:02

0 Answers0