Using special characters in C - Printable Version +- QP School (https://qomplainerzschool.lima-city.de) +-- Forum: Tutorials (https://qomplainerzschool.lima-city.de/forumdisplay.php?fid=3) +--- Forum: C 18 Tutorials (https://qomplainerzschool.lima-city.de/forumdisplay.php?fid=32) +--- Thread: Using special characters in C (/showthread.php?tid=5137) |
Using special characters in C - Qomplainerz - 07-26-2023 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. |