Differentiate between single quotes('') and double quotes(" ")
Answers
Answered by
1
Answer:
Single quotes encode a single character (data type char), while double quotes encode a string of multiple characters. The difference is similar to the difference between a single integer and an array of integers. char c = 'c'; string s = "s"; // String containing a single character.
Answered by
1
Explanation:
In common usage, there may be a distinction between the single and double quotation marks in this context; often, single quotation marks are used to embrace single characters, while double quotation marks enclose whole words or phrases[.]
hope it's help
mark as brainliest ❤️
Similar questions