compiling on windows and linux

前端 未结 4 1751
闹比i
闹比i 2021-02-20 11:50

I am new to c, and I have some been given some source code that someone else has written that was compiled on windows.

After trying to make in compile on linux I have e

4条回答
  •  青春惊慌失措
    2021-02-20 11:56

    Typedefs are definitely nicer. #defines are preprocessor macro's and can have unintended consequences, because basically the C preprocessor performs a global search-and-replace for defines. Typedefs are instructions to the compiler, and much better suited for what you want to do.

提交回复
热议问题