Error: Invalid escape sequence in C | Common C program Errors
All Answers
total answers (1)
Severity: 8192
Message: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated
Filename: libraries/Filtered_db.php
Line Number: 23
total answers (1)
Consider the program:
Output
We wanted to print "Hello world" and "How are you?" in separate lines but there is an invalid escape sequence \m. Thus, the result is "Hello worldmHow are you?".
How to fix "Invalid escape sequence in C" error
To fix this and such errors, you should know about all escape sequences and use them properly.
Read: Escape sequences in C
Correct code
Output
need an explanation for this answer? contact us directly to get an explanation for this answer