I want to assign ' to a character but it keeps giving me error any help?
void main()
{
char c = ''';
}
Special characters like ' or \ must be escaped with a backslash in these situations. In this particular case you got an error because the compiler thinks you opened and closed a null character with the first two '' and then opened another character without closing it with the third one.
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