Export (0) Print
Expand All
0 out of 3 rated this helpful - Rate this topic

A.27 Use of C99 Variable Length Arrays

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

NoteNote

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)
    ...
}
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.