No.
Firstly, const“constant” is actually two different things in C, although the keyword is constobviously derived from the word “constant”. A constant expression is an expression that can be evaluated at compile time. constreally means read-only. For example:
const int r = rand();
is completely legal.
, - - . , ( ) , , , .
:
char *arr1[10];
char *const arr2[10];
const char *arr3[10];
arr1 - 10- char. char*, , .
arr2 - const ( ) char. , char* ( ), char, .
arr3 - const char; , , .
, argv, , main, . , main
char *argv[]
, ,
char **argv
const. , , , , . (: , argv getopt(), char * const argv[].)
, , : , , "" . ( .) . .
C - . , .
6 comp.lang.c FAQ .