Why preprocessor should come before source code?

Answers were Sorted based on User's Feedback



Why preprocessor should come before source code? ..

Answer / bhaskar.mantrala

why because when we compile a program all input and output
statements will be replaced by thier own codes present in
the directives...so all these things would be done by
preprocessor(pre processing) (#).....

Is This Answer Correct ?    6 Yes 2 No

Why preprocessor should come before source code? ..

Answer / ashu_deepu

because there are codes which we use in the main program

need to be defined before their use.
or we can say we do so to have the prototype declaration
before their use.
eg.printf,scanf etc.

preprocessor include the header file
like stdio,conio etc.

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More C Interview Questions

in one file global variable int i; is declared as static. In another file it is extern int i=100; Is this valid ?

2 Answers   NetApp,


Who is the founder of c language?

0 Answers  


What is wrong in this statement? scanf(“%d”,whatnumber);

0 Answers  


which of the function operator cannot be over loaded a) <= b)?: c)== d)*

10 Answers   Cisco, CTS, Google, HCL, HP,


Can we change the value of constant variable in c?

0 Answers  






What does 3 mean in texting?

0 Answers  


‎How to define structures? · ‎

0 Answers  


while loop contains parts a) initialisation, evalution of an expression,increment /decrement b) initialisation, increment/decrement c) condition evalution d) none of the above

0 Answers  


7-Given an index k, return the kth row of the Pascal's triangle. For example, when k = 3, the row is [1,3,3,1]. For reference look at the following standard pascal’s triangle.

0 Answers  


Can i use “int” data type to store the value 32768? Why?

0 Answers  


i=20,k=0; for(j=1;j<i;j=1+4*(i/j)) { k+=j<10?4:3; } printf("%d", k);

8 Answers   HCL,


Please write me a program to print the first 50 prime numbers (NOT between the range 1 -50)

5 Answers   IBM, KJH,


Categories