int main(void) { __asm { mov eax, 123 } } // visual studio command line // cl testc.c // cl testcpp.cpp // testc.exe // echo C %errorlevel% // testcpp.exe // echo CPP %errorlevel%
For those not familiar with MSVC. The C compiler is not C99 compliant and the C++ compiler is.
For those not familiar with MSVC. The C compiler is not C99 compliant and the C++ compiler is.