0
in what conditions do we use " " and ' '?
4 Antworten
+ 8
We use " " in assigning a value to a String data type; use ' ' in assigning a value to a char data type.
+ 3
char var = 'a';
if (var == 'a')
//character; single quotations
string var = "abc";
if (var == "abc")
//string; double quotations
What Ananda Wisely said is correct.
0
i don't get it please explain it with an example..
- 2
😊