Why special characters are not be written in variables? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why special characters are not be written in variables?

21st Aug 2019, 10:07 AM
Suprit Sonar
Suprit Sonar - avatar
1 Answer
0
Special characters are usually used for something else within the programming language. E.g. < means "less than" and implies that you are comparing two values so if you put that in a variable the compiler will try and compare values using it.
21st Aug 2019, 1:29 PM
Christine