Portal Home > Knowledgebase > Articles Database > why is # used in header file


why is # used in header file




Posted by subhash, 01-06-2010, 12:25 PM
Hello All, What is the use of # in C program? Eg: #include #include Sorry if posted in wrong place. Thank you in advance, Subhash Chandra S

Posted by mattle, 01-06-2010, 01:01 PM
Those are known as "preprocessor directives". They give commands to the compiler, as opposed to being actual C statements. http://www.cplusplus.com/doc/tutorial/preprocessor/

Posted by subhash, 01-06-2010, 01:44 PM
Thank you for the answer Mattle.

Posted by Dr:linux, 01-08-2010, 01:47 AM
are the preprocessor directives.This provides an easier way of compilation of a program, modify and more useful. In linux, # represents a program and the compiler checks only the line that is included with # in the configuration files. For more details of the preprocessor directives please go through the link below.. http://www.cprogramming.com/tutorial/cpreprocessor.html



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
eBay Reseller (Views: 625)
Anyone use NeoSpire? (Views: 615)


Language: