Constant variables are those whose value cannot be changed once assigned.

Example:

 const float PI = 3.1429;

 char * const str = "Hello World!";
 const char * const str = "Hello World!";

Constant strings are linked in .rodata area of executable binary which are placed in read-only pages of the memory during execution.

About our authors: Team EQA

You have viewed 1 page out of 252. Your C learning is 0.00% complete. Login to check your learning progress.

#