A bit of a dumb one... but how do I get a variable of type char to have a value of '
?
e. g.
char c = ''';
char a = 'A';
char b = 'B';
char c = '\'';
the backslash is called an escape character.
and if you want a backslash it's
char c = '\\';
Here's some more for good measure:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With