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   To Refer this Site to Your Friends   Click Here
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
 
# define prod(a,b)=a*b main() { int x=2; int y=3; printf("%d",prod(x+2,y-10)); } the output of the program is a.8 b.6 c.7 d.none TCS5
What is the memory allocated by the following definition ? int (*x)[10]; ADITI3
what is a far pointer TCS9
write a program that finds the factorial of a number using recursion?  1
Every time i run a c-code in editor, getting some runtime error and editor is disposing, even after reinstalling the software what may be the problem?  2
Go through the following code sinippet char a[20]; a="Hello Orcale Test"; will this compile? Oracle3
What are the commands should be given before weiting C Program i.e, Cd.. like Infonet3
What's a "sequence point"?  2
main() { char *ptr = "Ramco Systems"; (*ptr)++; printf("%s\n",ptr); ptr++; printf("%s\n",ptr); } Find the Outputs? CitiGroup7
What is memmove? Oracle1
Name the language in which the compiler of "c" in written? Bajaj1
Write a program to compare two strings without using the strcmp() function Accenture14
How many types of linked lists what are they? How many types of data structures? BSNL5
HOW DO YOU HANDLE EXCEPTIONS IN C? AppLabs2
How do I declare an array of N pointers to functions returning pointers to functions returning pointers to characters?  1
void main() {int a[5],i,b=16; for(i=0;i<5;i++) a[i]=2*i; f(a,5,b); for(i=0;i<5;i++) printf("\n %d",a[i]); printf("\n %d",b); } f(int *x,int n,int y) { int i; for(i=0;i<n;i++) *(x+i)+=2; y=y+2; }wat r the errors in the prg.and improvise the prg to get o/p.?  2
how to find out the union of two character arrays?  1
pgm to find number of words starting with capital letters in a file(additional memory usage not allowed)(if a word starting with capital also next letter in word is capital cann't be counted twice) Subex1
What is structure packing ? HP1
write a program in c language for the multiplication of two matrices using pointers? Ignou5
 
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