What is the relation between # and include<stdio.h>

Answer Posted / jafar ali

when ever we include 'stdio.h' or any other header file
and use its features and functions using keyword 'include',
their codes are inserted in our source-code before
compiling.
when we use function printf() from stdio.h its code is
inserted in our code. This is done by c preprocessors and
is done before compiling the code.
And here '#' plays a vital part. # indicates that this
lines are to be considered by the preprocessor and it acts
appropriately.

i hope i have answered the question. i am new to c and
if any one want to add to this they are welcome.

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is c language still used?

537


What is the difference between near, far and huge pointers?

628


Explain how do you list files in a directory?

618


Is return a keyword in c?

598


What language is lisp written in?

618






What are the different properties of variable number of arguments?

669


why use "return" statement a) on executing the return statement it immediately transfers the control back to the calling program b) it returns the value present in the parentheses return, to the calling program c) a & b d) none of the above

609


What library is sizeof in c?

574


Is the exit() function same as the return statement? Explain.

664


Who invented b language?

915


What is the difference between #include

and #include “header file”?

552


What is c variable?

552


What is the difference between null pointer and wild pointer?

640


How can you increase the size of a dynamically allocated array?

642


How will you print TATA alone from TATA POWER using string copy and concate commands in C?

920