C constants

8 Views
Published
C constants tutorial example explained

#C #constants #tutorial

// constant = fixed value that cannot be altered by the program during its execution

const float PI = 3.14159;

//PI = 420.69; YOU CAN'T CHANGE THIS

printf("%f", PI);

return 0;
Category
Bro Code
Tags
constant, constants, constants in c
Be the first to comment