Valeo interview question

Difference between macros and functions - #pargma usage

Interview Answer

Anonymous

16 Aug 2016

macro : preprocessor text replacement , no type checking function : executed during execution time #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.

4