Double and Single quotes. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Double and Single quotes.

Whats the differences between them? A symbol and a string?

25th Jul 2018, 4:43 AM
DiYiFan
DiYiFan - avatar
2 Answers
+ 2
Double is Double precision floating point number. 64bit floating number. Sigle quotes are used to express charactor. The type is char. 'a' If you write multiple characters in it, the type is int.
25th Jul 2018, 5:01 AM
Disvolviĝo;
Disvolviĝo; - avatar
+ 3
Single quotes define a character Double quotes define a string, which is an array of characters.
25th Jul 2018, 6:09 AM
Dan Walker
Dan Walker - avatar