Is character data type values should be delimited by using single quote
Answers
Answered by
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;
Example;
char var1='a';//valid
char var2[6]="Hello";//valid
char var3="Hi!";//invalid;
Answered by
0
Answer:
yes but upto a certain extent
Similar questions