Dynamic array in Visual Stdio IDE

  • Thread starter Thread starter Arash_89
  • Start date Start date
A

Arash_89

Guest
Hello,

We cannot run the below code in Visual Studio and I have an error but in other compiler it can be compile.

What's the difference?

#include<iostream>


int main()
{
int n;
cin>>n;

int a[n];

return 0 ;
}

Continue reading...
 
Back
Top