1.

Which of the following is the correct syntax of including a user defined header files in C++?(a) #include (b) #include (c) #include “userdefined”(d) #include [userdefined]I had been asked this question by my school teacher while I was bunking the class.My question is taken from Basics in portion Basics Concepts of C++ of C++

Answer»

The correct CHOICE is (c) #INCLUDE “userdefined”

The BEST I can explain: C++ USES DOUBLE quotes to include a user-defined header file. The correct syntax of including user-defined is #include “userdefinedname”.



Discussion

No Comment Found

Related InterviewSolutions