Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

    8. Modifiers to array sizes in parameter definitions [https://godbolt.org/z/FnwYUs]
    void foo(int arr[static const restrict volatile 10]) {
        // static: the array contains at least 10 elements
        // const, volatile and restrict all apply to the array type.
    }
I imagine most of these depend on the C version, but this one specifically bit me because one tool only supported c99 and the other was c11 or something later.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: