-
wierd guy
" " and ' '
when do you use " " and when do you use ' '?
-
Confused
Answer
use " " for strings and ' ' for single characters. Ie: 'A', '1', "Hello". Obs: '1' != 1 (the character 1 is NOT the number 1.
MagosX.com
Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime.
-
In some cases, you can actually use the ' ' (single quotes) to also define a string constant in a long... for example:
unsigned long identTag;
identTag = 'BLUE';
---
It's a 32-bit hex number. you can't use it for more than 4 bytes.
Popular pages
Recent additions