Multiple choice

A user defined header file myheader.h is saved at root directory. Write pre-processor directives to include the header file in the program code in C language.

  1. include <myheader.h><myheader.h></myheader.h>

  2. include <myheader.h><myheader.h></myheader.h>

  3. include C:myheader.h

  4. include "C:myheader.h"

  5. main (C:myheader.h)

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

This the correct way to include the user defined header files in a program code. Here the header file is saved at root directory (C:).