I cannot belive I have to ask this, but nono of my C books tell me how to so this, and I have attempted to #define it with no avail.
Basicly I want '\n' to show in a printf statement. Every attempt I have made just makes the newline chacter work as it should and prints a new line.
Basicly, the output I want is:
In C use the \n escape character to print a newline
I have tried these:
I have googled the problem but nothing is helping, Am I really dont think this is even possible, as the compiler always reads the \n and prints the newline as it should. Am I correct?Code:printf("In C use the \"\n\" ecscape character to print a newline\n"); printf("In C use the %s escape character to print a newline\n"); /*defined NL*/