Reputation: 383
How do I initialize a new line char in C?
For example, to initialize char A:
char letter = 'A';
How to initialize new line? Like this maybe:
char newLine = '0x0A'?
Upvotes: 0
Views: 2485
Reputation: 2935
I prefer to you read New Line , It's explain completely \n \r and UNIX EOL and WINDOWS EOL.It's very nice.
Upvotes: 0
Reputation: 81684
Use an escape character like this:
char letter = '\n';
Upvotes: 6