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

If the size of int data type is two bytes, what is the range of signed int data type?

0 Answers  


f(char *p) { p=(char *)malloc(sizeof(6)); strcpy(p,"HELLO"); } main() { char *p="BYE"; f(p) printf("%s",p); } what is the output?

9 Answers   Hughes, Tech Mahindra,


What is wild pointer in c?

0 Answers  


How can you tell whether a program was compiled using c versus c++?

0 Answers  


What are the different file extensions involved when programming in C?

0 Answers  


Can you write the function prototype, definition and mention the other requirements.

0 Answers   Adobe,


Write a program for the following series? 1 121 12321 1234321 123454321 12345654321 1234567654321 123456787654321 12345678987654321 1234567890987654321 123456789010987654321 12345678901210987654321 1234567890123210987654321 .........1234321............ ..........123454321............ ..........12345654321............ 7 8 9 0 1 Pls............?

5 Answers  


increment operateor (++)and decrament(--) #include<stdio.h> #inclide<conio.h> main() { int x=15; while(x!=0) scanf("%d",&x); {

2 Answers   HCL, Syntel, TCS,


Q.1 write a program to create binary tree 1 to 16 numbers? Q.2 write a program to creat a binary search tree for the member that is given by user?

0 Answers   Case, IBM,


suppose we use switch statement and we intilize years name using enum statement like(jan,feb,mar,------dec) we take integer value as an input .question is that the month which we analyz is from 0 to 11 bt if i enter 12 than how he again starts from begning and print jan

1 Answers  


20. main() { int i=5; printf("%d%d%d%d%d%d",i++,i--,++i,--i,i); } Answer:??????

2 Answers  


What is difference between main and void main?

0 Answers  


Categories