#include int main() { int z = rand(); for(int x=1; x < z; ++x) { int y[x]; // Variable size /* do something */ } }