Why in C++ to use "" not '' to define a string? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why in C++ to use "" not '' to define a string?

I tested it, It just outputed the length of the string. Can u tell me why to use "" not ''

9th Oct 2018, 2:38 AM
Potato Hacker
Potato Hacker - avatar
1 Answer
+ 1
Yes
9th Oct 2018, 3:01 AM
Potato Hacker
Potato Hacker - avatar