QP School

Full Version: Using special characters in C
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Example:

char newline = '\n';
char tab = '\t';
char backslash = '\\';

Explanation:

In C, certain characters have special meanings and are represented by escape sequences.
In this example, we use the escape sequences to store special characters in char variables.
'\n' represents the newline character, '\t' represents the tab character, and '\\' represents a backslash.