1.

Which of the following file extensions are accepted with #include?(a) .h(b) .in(c) .com(d) All of the mentionedThis question was posed to me in final exam.This interesting question is from File Inclusion in portion C Functions and Structure of a Program of C

Answer»

The correct answer is (d) All of the mentioned

Explanation: The preprocessor will INCLUDE whatever file extension you specify in your #include statement. However, it is not a GOOD practice as ANOTHER person debugging it will FIND it DIFFICULT in finding files you have included.



Discussion

No Comment Found

Related InterviewSolutions