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

Answers were Sorted based on User's Feedback



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

Answer / gita

include<stdio.h> means we include standard input and output
functions code we does not write any thing about library
functions .h means header file if we include tis header
file then we place # before the include<stdio.h> this is c
syntax.

Is This Answer Correct ?    13 Yes 1 No

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

Answer / priyanka

actually, in C, every keyword has some specific value some
specific meaning and those meanings of keywords are already
been stored in header files like
<stdio.h>,<conio.h>,<math.h> etc.... so to make computer
understood the meaning of printf, scanf like keywords, we
have to use header files in begining of the prog... and #
is a preprocessor.... this tells computer that now u be
ready to write a prog...
this is wat i think.... though i dnt hav technical
knowledge still i tried to xplain.....

Is This Answer Correct ?    8 Yes 1 No

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

Answer / pandya umesh c

it is library file access,which contains information that
must be included in the program when it is compiled.

Is This Answer Correct ?    5 Yes 0 No

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

Answer / 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

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

Answer / anjali

# indicates the directive preprocessor which allows the
program to run.
While include<stdio.h> is the standard library function
that allows you to enter the input and receive the output.
i.e. printf() and scanf().

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

How do you access command-line arguments?

1 Answers  


how to print "hai" in c?

13 Answers   TCS,


What is the advantage of a random access file?

0 Answers  


What is the value of h?

0 Answers  


Why is #define used?

0 Answers  






What are the different types of objects used in c?

0 Answers  


How do I round numbers?

0 Answers  


What are volatile variables?

1 Answers   Mind Tree,


There are 8 billiard balls, and one of them is slightly heavier, but the only way to tell was by putting it on a weighing scale against another. What's the fewest number of times you'd have to use the scale to find the heavier ball?

5 Answers   Microsoft, TCS,


program to find which character is occured more times in a string and how many times it has occured? for example in the sentence "i love india" the output should be i & 3.

3 Answers  


Write a program in c to replace any vowel in a string with z?

0 Answers   IBS,


is assignment operator is arithmatic or not

3 Answers   Infosys,


Categories