Use of #pragma in C

c, pragma

Solution

`#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.

Problem

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

Original source

Related problems