+ 2

Initialise a null character in a string??

But But without using Null,\o or 0

18th Aug 2018, 5:58 PM
Rahul Jain
Rahul Jain - avatar
4 Antworten
+ 2
This is a string literal, probably used in some earlier example. Sequences ofcharacters enclosed in double-quotes ( " ) are literal constants. And their type is, in fact, a null-terminated array ofcharacters. This means that stringliterals always have a null character ( '\0' ) automatically appended at the end.
18th Aug 2018, 6:21 PM
Mayur Shedage
Mayur Shedage - avatar