when do you use " " and when do you use ' '?
This is a discussion on " " and ' ' within the C++ Programming forums, part of the General Programming Boards category; when do you use " " and when do you use ' '?...
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.