Computer Science, asked by racharunarmparvaj, 1 year ago

Is character data type values should be delimited by using single quote

Answers

Answered by Anonymous
12
If the character contains only one letter (like a, B, etc.) then it could be delimited by single quotes. But for words(multiple letters), double quotes are needed.
Example;
char var1='a';//valid
char var2[6]="Hello";//valid
char var3="Hi!";//invalid;
Answered by cheemaranjit1981
0

Answer:

yes but upto a certain extent

Similar questions