Multiple choice technology programming languages

#define a 10 main() { #define a 50 printf(“%d”,a); }

  1. 50

  2. 10

  3. error

  4. none of these

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The preprocessor macro is redefined inside the main function scope. The compiler uses the latest definition of the macro 'a' when compiling the printf statement, resulting in the value 50 being printed instead of the initial value of 10.