error: stray ‘\343’ in program [How to Solve]

Problem phenomenon:

Cause of problem:

This error is basically generated by copying the code from the web page and compiling it. Because the copied code contains Chinese spaces and characters, it can’t be distinguished by the naked eye.

Solution:

1. When the amount of code is small, it is best to re type it at the error location, then save it and recompile it.

Error prompts the location information of the error. Find the corresponding place to change.

2. It can also be used when there are many codes, or the replacement function of GEDIT can be used to replace with standard spaces, which is more labor-saving.

Find characters in error:

Under Linux, you can:

cat xxx.c -A

Chinese will be displayed as characters with red lines.

Read More: