c - How does one represent the empty char? -


i'm writing little program keep getting error when compiling

error: empty character constant

i realize it's because i'm trying replace valid char empty space c[i]='' have not been able find way represent it.

you can use c[i]= '\0' or c[i] = (char) 0.

the null/empty char value of zero, can represented character escaped zero.


Comments

Popular posts from this blog

Line ending issue with Mercurial or Visual Studio -

tags - Jquery Mixitup plugin help prevent handlers being destroyed -

c# - Delving into the world of XML (Windows Phone) Error I dont understand (The ' ' character, hexadecimal value 0x20, cannot be included in a name.) -