how to initialize an array at runtime?

Viewed 38

GCC allowing the run-time size of array, but clang doesn't ? why ?

case : 1

int x = 5, y = x;

case : 2

int x = 3, arr[x]{2, 3, 4};
0 Answers
Related