Preprocessors


  1. For each #if, #ifdef, and #ifndef directive.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    Zero or one #else directive.
    There are zero or more #elif directives.
    One matching #endif directive.


  1. The #elif directive cannot appear after the preprocessor #else directive.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: E

    Can appear after the preprocessor #else directive.



  1. Conditional inclusion can be used for ___________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    Check for existence of a variable and doing something if it exists.
    Preventing multiple declarations of same function.
    Preventing multiple declarations of a variable.


  1. In a conditional inclusion, if the condition that comes after the if is true, then what will happen during compilation?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    Then the code up to the following #else or #elif or #endif is compiled



  1. Which of the following sequences are unaccepted in C language?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    #if
    #if
    #endif