Ask your own question, for FREE!
Computer Science 8 Online
OpenStudy (anonymous):

can anyone tell me the significance of "dot" in #include

OpenStudy (amistre64):

if its CSS i tmight indicate a 'class'

OpenStudy (anonymous):

From what I know, the "dot" separates the file name from the file extension/type. It's like notepad.txt where "txt" is the file type.

OpenStudy (amistre64):

yeah, in any event, it would appear to act as a flag for parsing the instruction.

OpenStudy (anonymous):

i agree with nadineplusv it is used for an extension

OpenStudy (anonymous):

Hi, I think you're talking about C language. In C we can use any file for header but we use the extensio .h for standard. The dot is used to separe the name and extension type... That info is used by the Operational System (OS) to know what program will open the file, got it?

OpenStudy (anonymous):

No siglem, this is for C++. In this language the .h is not necessary.

OpenStudy (anonymous):

the reference I gave is for the C Preprocessor. "The C preprocessor implements the macro language used to transform C, C++, and Objective-C programs before they are compiled."

OpenStudy (anonymous):

the . is there because in its specification the file extension must be indicated, the header file can be of other kinds of extensions as long as they are text example as long as the compiler doesn't bother you try #include "lib.txt" to see if it works the extension signifies that its a header file, i.e., a file that provides the available functions or macros for a specific library in C++ the compiler can use the C libraries but the extension is not required most of the times because C++ was built most on top of C there are specific versions of libraries such as for example <cstdio> instead of <stdio.h>.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!