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

WRITE A PROGRAM IN C TO MULTIPLY TWO 2-D ARRAYS

4 Answers  


Is c language still used?

0 Answers  


int i=10; printf("%d %d %d", i, i=20, i);

0 Answers  


How many levels of pointers have?

0 Answers  


what is event driven software and what is procedural driven software?

0 Answers  






What is a protocol in c?

0 Answers  


int *a[5] refers to

12 Answers   TCS,


What are linked lists in c?

0 Answers  


How many levels of indirection in pointers can you have in a single declaration?

0 Answers   Agilent, ZS Associates,


What is key word in c language?

4 Answers   ABC,


I heard that you have to include stdio.h before calling printf. Why?

0 Answers  


write a program to print calender using for loop.

1 Answers   HCL, TCS,


Categories