constand volatileare called "type classifiers." Their syntax is one of the most confusing things in C.
First of all, we are dealing with an ordinary variable. Typically, you specify the type specifier to the variable name: const int x;but as well to record it after the name of the variable: int const x;. The meaning is the same, the last syntax is simply confused.
: , . : int* x , int, - int.
- const int, const int* x. pointer-to-const-int, - const int. , int const* x, .
, , . - . , , . int*const x; const *. int, const int. ( const *, , , )
, , : const int*const x; , int.
const int x;
int const x;
const int* x;
int const* x;
int*const x;
const int*const x;
const. volatile , ! ..
, , . , volatile const int* , volatile const. , , volatile int const * int volatile const * .., .