Question

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

Was it helpful?

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...

OTHER TIPS

Qualifiers
The keywords which are used to modify the property of a variable are called type qualifiers

eg.

 const
 volatile

Storage class specifiers in C language tells the compiler where to store a variable, how to store the variable, what is the initial value of the variable and life time of the variable.

eg.

auto
static
int
register

You can learn more here link

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top