I'm running Xcode 7.1 on Mac OS X 10.11. I'm trying to declare a VLA array in C but I can't do it.
The second I use a variable in the array declaration, it's moot. The array doesn't get created. I've dug around in the compiler settings, tried installing GCC manually, I can't figure this out. Can anyone spot the issue? From what I understand VLA's became standard since C99 and from what I can tell my Xcode is running on C11. What is the deal here? Code and settings images included.
void printTriangle (int height, char rowPatterns[][height]) {
int rowSize = 2 * height - 1;
char rowString[rowSize]; //string to store in pattern's array
int characterCount = rowSize; //number of character printed per row of triangle
int asteriskCount = 1; //number of asterisks printed in each row
int spaces = (characterCount - asteriskCount) / 2; //how many spaces need to be printed in this current row
int rowCount;
// rest of the code...
}