subhash
01-06-2010, 12:25 PM
Hello All,
What is the use of # in C program?
Eg: #include<stdio.h>
#include<conio.h>
Sorry if posted in wrong place.
Thank you in advance,
Subhash Chandra S
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/
subhash
01-06-2010, 01:44 PM
Thank you for the answer Mattle.
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