Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between a qualifier and a modifier in C?

Tags:

c

I would like to know the difference between a qualifier and a modifier. Some books suggest that volatile is a modifier, other books regard it as a qualifier.

So what is exactly a modifier and a qualifier, in respect to a variable?

like image 751
Amit Singh Tomar Avatar asked Feb 20 '12 11:02

Amit Singh Tomar


Video Answer


1 Answers

In the C terminology volatile is a qualifier.

const, restrict, volatile and C11 _Atomic are the C type qualifiers.

C terminology does not use the word modifier when declaring an object.

like image 167
ouah Avatar answered Sep 21 '22 18:09

ouah