Lowest price ever! Learn Generative AI for 48% less!
Get my discount0
Double and Single quotes.
Whats the differences between them? A symbol and a string?
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.
+ 3
Single quotes define a character
Double quotes define a string, which is an array of characters.