Use of #pragma in C

前端 未结 10 1760
囚心锁ツ
囚心锁ツ 2020-11-27 09:32

What are some uses of #pragma in C, with examples?

10条回答
  •  北海茫月
    2020-11-27 10:18

    #pragma is for compiler directives that are machine-specific or operating-system-specific, i.e. it tells the compiler to do something, set some option, take some action, override some default, etc. that may or may not apply to all machines and operating systems.

    See msdn for more info.

提交回复
热议问题