79303058

Date: 2024-12-23 12:28:44
Score: 1
Natty:
Report link

Yes, GCC/G++ can dump its default preprocessor defines using the -dM and -E options together. Here's the command:

gcc -dM -E - < /dev/null

Or for G++:

g++ -dM -E - < /dev/null

This will output all the predefined macros, including ones like GNUC, STDC, and others, to the console. Here's what each flag does:

input.

If you are preparing for programming certifications or interviews and need more practice, you can also explore practice exams from this source: https://www.pass4future.com/questions/giac/gccc

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Rosa Turner