0

literal and constant

I'm studying about "literal". What is the difference between "literal" and "constant"? ex) int a = 1; The one thing I know is "constant" is an unchanged variable like "a" above.

18th Jan 2019, 7:20 AM
ë°•ì°Źì˜
ë°•ì°Źì˜ - avatar
1 Answer
+ 2
HEY, I found something. "literal" : an unchanged data. "constant" ; an unchanged variable.
18th Jan 2019, 7:38 AM
ë°•ì°Źì˜
ë°•ì°Źì˜ - avatar