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

Write a program to know whether the input number is an armstrong number.

0 Answers   Wipro,


what is bit rate & baud rate? plz give wave forms

0 Answers  


Explain pointers in c programming?

0 Answers  


Write a program to use switch statement.

0 Answers   Agilent, Integreon, ZS Associates,


What is the diffrent between while and do while statement ?

6 Answers  






What is the result main() { char c=-64; int i=-32 unsigned int u =-16; if(c>i){ printf("pass1,"); if(c<u) printf("pass2"); else printf("Fail2");} else printf("Fail1); if(i<u) printf("pass2"); else printf("Fail2") } a)Pass1,Pass2 b)Pass1,Fail2 c)Fail1,Pass2 d)Fail1,Fail2 e)none

9 Answers   IBM,


What is void c?

0 Answers  


2.main { int x,j,k; j=k=6;x=2; x=j*k; printf("%d", x);

9 Answers   HCL, Tech Mahindra,


pgm to find middle element of linklist(in efficent manner)

4 Answers   Huawei,


what is the output? #define fun(a,b,t) (g ##t=(a),(a)=(b),(b)=g##t) float gfloat; main() { float a=1.12,b=3.14; fun (a,b,float); printf("na=%4.2f,b=%4.2f",a,b); } A)Error in Defining Macro B)a=1.12,b=3.14 C)a=3.14,b=1.12 D)None of the Above

3 Answers   Accenture, Infosys, Wipro,


can we have joblib in a proc ?

0 Answers  


What is the purpose of the following code? Is there any problem with the code? void send(int count, short *to, short *from) { /* count > 0 assumed */ register n = (count + 7) / 8; switch (count % 8) { case 0: do { *to = *from++; case 7: *to = *from++; case 6: *to = *from++; case 5: *to = *from++; case 4: *to = *from++; case 3: *to = *from++; case 2: *to = *from++; case 1: *to = *from++; } while (--n > 0); } }

0 Answers   Google,


Categories