Home » C Programming » Preprocessors » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    #define MINIMUM 25
    #if defined(MINIMUM) + defined(MAXIMUM)
    #define MAXIMUM 125
    #endif
    int main()
    {
    printf("%d %d\n", MAXIMUM, MINIMUM);
    return 0;
    }
    1. Garbage value
    2. Compilation Error
    3. 25 125
    4. 125 25
    5. None of these
Correct Option: D

125 25



Your comments will be displayed only after manual approval.