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

What is call by reference in functions?

1 Answers  


How can I read a binary data file properly?

0 Answers  


input any 4 digit number and find the difference of all the digits?

3 Answers   Google,


wat are the two methods for swapping two numbers without using temp variable??

2 Answers  


Explain void pointer?

0 Answers  


what is the difference between : func (int list[], ...) or func (int *list , ....) - what is the difference if list is an array and if also if list is a pointer

2 Answers  


a=10;b= 5;c=3;d=3; if(a printf(%d %d %d %d a,b,c,d) else printf("%d %d %d %d a,b,c,d);

0 Answers   Wilco,


Write a C program to help a HiFi’s Restaurant automate its breakfast billing system. Your assignment should implement the following items: a. Show the customer the different breakfast items offered by the HiFi’s Restaurant. b. Allow the customer to select more than one item from the menu. c. Calculate and print the bill to the customer. d. Produce a report to present your complete program and show more sample output. Assume that the HiFi’s Restaurant offers the following breakfast menu: Plain Egg $2.50 Bacon and Egg $3.45 Muffin $2.20 French Toast $2.95 Fruit Basket $3.45 Cereal $0.70 Coffee $1.50 Tea $1.80

0 Answers  


Is c compiled or interpreted?

0 Answers  


WAP that prints the number from 1 to 100. but for multiplies of three print "XXX" instead of the number and for the multiplies of five print "YYY" . for number which are multiplies of both three and five print "ZZZ"

3 Answers  


Explain how do you declare an array that will hold more than 64kb of data?

0 Answers  


What do the functions atoi(), itoa() and gcvt() do?

0 Answers   Aspire, Infogain,


Categories