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

How to declare a variable?

752


What is identifiers in c with examples?

858


What is the difference between functions getch() and getche()?

814


What is the correct code to have following output in c using nested for loop?

810


Write the syntax and purpose of a switch statement in C.

835


What are bitwise shift operators in c programming?

819


Is r written in c?

888


What are the header files used in c language?

770


Write the Program to reverse a string using pointers.

784


How can I change their mode to binary?

885


what is the function of pragma directive in c?

869


Which programming language is best for getting job 2020?

773


Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?

815


How many keywords (reserve words) are in c?

782


Can I initialize unions?

796