What is the significance of null (\ ) character in a string? ? Evaluate Yourself String Literals Sequence of characters enclosed within double quotes are called as String literals. By default, string literals are automatically added with a special character ‘\ ’ (Null) at the end.
Therefore, the string “welcome” will actually be represented as “welcome\ ” in memory and the size of this string is not but characters i.e., inclusive of the last character \ . Valid string Literals : “A”, “Welcome” “ ” Invalid String Literals : ‘Welcome’, ‘ ’ . . Operators The symbols which are used to do some mathematical or logical operations are called as “Operators”.
The data items or values that the oper ators act upon are called as “Operands”.