07-26-2023, 07:47 AM
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.
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.