Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using special characters in C
#1
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.
Also follow me on Youtube for videos about video games:
https://www.youtube.com/channel/UCxfkGVU...2mQ/videos
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  ASCII representation of characters Qomplainerz 0 248 07-26-2023, 07:48 AM
Last Post: Qomplainerz

Forum Jump:


Users browsing this thread: 2 Guest(s)