以下說明,在C 語言中,出現backslash and newline separated by space 警告的處理方式。
看下圖,編譯時出現以下錯誤:
![](https://i0.wp.com/mintrabbitplus.com/wp-content/uploads/2023/12/A1.webp?resize=534%2C48&ssl=1)
查看原始碼,發現警告指出define 結尾多出空格。
![](https://i0.wp.com/mintrabbitplus.com/wp-content/uploads/2023/12/A2.webp?resize=692%2C131&ssl=1)
因此將空格出掉即不會出現此警告。
以下說明,在C 語言中,出現backslash and newline separated by space 警告的處理方式。
看下圖,編譯時出現以下錯誤:
查看原始碼,發現警告指出define 結尾多出空格。
因此將空格出掉即不會出現此警告。