Search code examples
cqualifiers

What is the difference between qualifiers and specifiers in C?


Could some one explain what is the difference between qualifiers and specifiers in C?


Solution

  • Assuming you're talking about types, then this is simply a lookup in the C standard.

    C99 section 6.7.2:

    type-specifier:

    void
    char
    short
    int
    ...
    

    C99 section 6.7.3:

    type-qualifier:

    const
    restrict
    volatile
    

    I imagine that it's clear that these are distinct categories of things...