Skip to content

Commit c4964b2

Browse files
committed
Added 2nd stray character example
1 parent d58c42e commit c4964b2

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

debugging/c_debugging.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ error: C++ style comments are not allowed in ISO C90
4545
This is due to compiling with a C standard prior to C99. C++ style comments - // - instead of C-style comments /* */ - are not allowed in C90 an earlier (the -ansi flag). Remove the -ansi flag from your compile statement.
4646
```
4747

48-
### Stray '\223' in program
48+
### Stray character in program
4949

5050
```(text)
5151
myprogram.c:4:5: error: stray '\223' in program
@@ -56,6 +56,20 @@ myprogram.c:9:1: error: expected expression before '}' token
5656
myprogram.c:9:1: error: expected ';' before '}' token
5757
```
5858

59+
or
60+
61+
```(text)
62+
stray223224.c: In function ‘main’:
63+
stray223224.c:4:12: error: stray ‘\342’ in program
64+
4 | printf(File not found error example\n”);
65+
| ^
66+
stray223224.c:4:13: error: stray ‘\200’ in program
67+
4 | printf(File not found error example\n”);
68+
| ^
69+
stray223224.c:4:14: error: stray ‘\234’ in program
70+
4 | printf(File not found error example\n”);
71+
```
72+
5973
The likely cause is that you did a copy & paste from a program that uses smart quotes (such as MS Word or Google Docs). Double check each quote in your program to be sure you have an actual single/double quote and NOT a smart quote.
6074

6175
### Expected declaration or statement

0 commit comments

Comments
 (0)