How Should One Print Out a NULL Character without a Space in C
- by sobbayi
I have a situation where I have to print out a NULL character if there is no action in a part of my program. Take for example the code below:
char x = '\0';
...
printf("@%c@\n", x);
I want it to print this:
@@
but it prints out
@ @
Whats the correct way not to have the \0 character printed out a space as above?