ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Programming Languages  >>  C
 
 


 

 
 C interview questions  C Interview Questions
 C++ interview questions  C++ Interview Questions
 VC++ interview questions  VC++ Interview Questions
 Delphi interview questions  Delphi Interview Questions
 Programming Languages AllOther interview questions  Programming Languages AllOther Interview Questions
Question
Why preprocessor should come before source code?
 Question Submitted By :: Sourisengupta
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Why preprocessor should come before source code?
Answer
# 1
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 ?    3 Yes 1 No
Bhaskar.mantrala
 
  Re: Why preprocessor should come before source code?
Answer
# 2
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 ?    0 Yes 0 No
Ashu_deepu
 
 
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
1)which of following operator can't be overloaded. a)== b)++ c)?! d)<= Siemens10
what is the first address that gets stored in stack according to a C or C++ compiler???? or what will be the first address that gets stored when we write a C source code???????? Apple2
a=0; b=(a=0)?2:3; a) What will be the value of b? why b) If in 1st stmt a=0 is replaced by -1, b=? c) If in second stmt a=0 is replaced by -1, b=? Geometric-Software6
program to find a smallest number in an array Microsoft5
write a program to display the array elements in reverse order in c language  6
How the processor registers can be used in C ? HP4
what is the difference between NULL & NUL keywords in C?  3
How we add our function in liabrary as liabrary function. Exp. we want use our int factorical(int); function as int pow(int,int); function working in math header file.  1
What are the phases in s/w developed life cycle? wat is the diff b/w stack & queue...where do we use stack  5
pointer_variable=(typecasting datatype*)malloc(sizeof(datatype)); This is the syntax for malloc?Please explain this,how it work with an example? Excel2
Is it possible to run a c program without using main?If yes HOW?? Wipro10
why you will give me a job in TCS. TCS5
Write a program to interchange two variables without using the third variable? Accenture11
Is the following code legal? struct a { int x; struct a b; }  3
palindrome for strings and numbers----Can anybody do the prog? TCS6
any string of bits of length 'n' represents a unique non- negative integer between.............?  2
write an algorithm which can find the largest number among the given list using binary search ............... this was asked in the interview Satyam2
difference between semaphores and mutex?  1
What is meant by int fun const(int a, int b) { .... ... }  1
dennis ritchie invented C language in AT&T bell laboratory what is the extension of AT&T?  1
 
For more C Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com