Use of numeric escape sequences has such potential for confusion that it may be helpful take advantage of implicit concatenation to isolate the escape sequence:
- char str[] = "S" "\065" "AB";
You should review the action of the escape character in string literals to see why I chose to break the string at these points.
Compare the following strings. What is the size (returned by sizeof), length (returned by strlen), and content of each?
- char str1[] = "S\065AB";
-
char str2[] = "S" "\065" "AB";
-
char str3[] = "S" "\06" "5AB";
-
char str4[] = "S" "\0" "65AB";