And the difference between using the C language variables and constants

variable

Definition of a variable: type variable name = value;

int a =0; // 变量,可以在赋值

constant

Defining a constant name = const constant type constant value

const int LENTHER = 521 // 定义一个常量

Guess you like

Origin www.cnblogs.com/fandx/p/12122802.html