I\'m trying to print escape characters as characters or strings using this code:
while((c = fgetc(fp))!= EOF) { if(c == \'\\0\') { printf(\"
If you want to escape %d within printf to allow you to actually print the characters "%d":
%d
printf
printf("%%d");