Why is an escape sequence used? Explain with examples.
An escape sequence is used to represent special characters that cannot be typed directly, such as newline, tab, or quotes. For example, \n represents a newline, \t represents a tab space, and \” represents a double quote. Example: printf(“Hello\nWorld”); This will print “Hello” on one line and “World” on the next. Related Questions: Why is … Read more