Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between qualifiers and specifiers in C? [duplicate]

Tags:

c

qualifiers

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

like image 686
haccks Avatar asked Oct 21 '25 09:10

haccks


1 Answers

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

like image 89
Oliver Charlesworth Avatar answered Oct 23 '25 00:10

Oliver Charlesworth



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!