Computer Science, asked by TbiaSupreme, 1 year ago

Differentiate between single character constant and string constant

Answers

Answered by Anonymous
9

String constant is written in (" " )double quotes"

while character in single.(' ')

Answered by Meghanath777
7
A character constant like '!' represents a single character. A string literal between double quotes usually represents multiple characters. A string literal like "!" seems to represent a single character, but it actually contains two: the ! you requested, and the \0 which terminates all strings in C.
Similar questions