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 Odpowiedź
+ 2
HEY, I found something. "literal" : an unchanged data. "constant" ; an unchanged variable.
18th Jan 2019, 7:38 AM
박찬영
박찬영 - avatar