Computer Science, asked by dhanukotanaveenkumar, 3 months ago

1) #include<userdefined.h>
Which of the following is the correct syntax to add the header file in the C++ program?​

Answers

Answered by ıtʑFᴇᴇʟɓᴇãᴛ
36

Answer :-

The correct syntax of including user-defined is #include “userdefinedname” .

Syntax :-

#include <filename.h>

or

#include "filename.h"

Answered by qwnerazzuri
0

Correct Syntax to add the header file in the C++ program is as follow:

#include< filename.h > or #include "filename.h"

A header file is a file with a ".h" extension that contains predefined functions, function declarations and snippets that users can include in their program and use in writing the program. There are two types of header files, One which comes predefined with the compiler and the other that is user-defined.

Some Example: #include< iostream.h >, #include< conio.h >, #include<stdio.h >  

Similar questions