Home » C Programming » Preprocessors » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    #include "printf"
    void main()
    {
    printf("Welcome");
    }
    1. Compilation Error
    2. Depends on compiler
    3. Welcome
    4. Varies
    5. None of these
Correct Option: A

Compilation Error

main.c:2:14: fatal error: printf: No such file or directory
#include "printf"
^~~~~~~~
compilation terminated.



Your comments will be displayed only after manual approval.