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
Post a Comment