A.27 Use of C99 Variable Length Arrays


For the latest documentation on Visual Studio 2017, see Visual Studio 2017 Documentation.

The following example demonstrates how to use C99 Variable Length Arrays (VLAs) in a firstprivate directive (Section on page 26).

System_CAPS_ICON_note.jpg Note

Variable length arrays are not currently supported in Visual C++.

void f(int m, int C[m][m])  
    double v1[m];  
    #pragma omp parallel firstprivate(C, v1)