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   SiteMap shows list of All Categories in this site.
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
What are the uses of pre-processor directives?
 Question Submitted By :: Rkb
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What are the uses of pre-processor directives?
Answer
# 1
The pre processor directives are the code line which are 
replaced by the actuall value (header file and Macro 
replacements) before compiler start the syntax checks.
 
Is This Answer Correct ?    5 Yes 0 No
Vl
 
  Re: What are the uses of pre-processor directives?
Answer
# 2
Preprocessor Directive are
#include
#if
#else
#define
#ifdef
#ifndef
#endif

the command starts with # are called preprocessor directives

Uses
File Inclussion
Conditional Compilation
Macro Expansion
 
Is This Answer Correct ?    5 Yes 0 No
Raghav_jk
[Knowx Innovations]
 
 
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
what is the difference between strcpy() and memcpy() function?  1
char ch=10;printf("%d",ch);what is the output Accenture11
value = 0xabcd; for (loop = 1; (value >> 1) & 1 | loop & 1; loop++) { foo(); if (loop & 1) value >>= 1; } how many times is foo() executed? Google5
I have an array of 100 elements, each of which is a random integer. I want to know which of the elements: a) are multiples of 2 b) are multiples of 2 AND 5 c) have a remainder of 3 when divided by 7  1
Two's compliment of -5 Adobe3
pgm to find middle element of linklist(in efficent manner) Huawei2
DIFFERNCE BETWEEN THE C++ AND C LANGUAGE? Wipro1
HOW TO HANDLE EXCEPTIONS IN C  5
program to get the remainder and quotant of given two numbers with out using % and / operators? IBM8
In the following code segment what will be the result of the function, value of x , value of y { unsigned int x=-1; int y; y = ~0; if(x == y) printf("same"); else printf("not same"); } a) same, MAXINT, -1 b) not same, MAXINT, -MAXINT c) same , MAXUNIT, -1 d) same, MAXUNIT, MAXUNIT e) not same, MAXINT, MAXUNIT IBM1
How would you find a cycle in a linked list?  2
What's wrong with "char *p; *p = malloc(10);"?  5
When is an interface "good"?  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 can i get this by using for loop? * ** * **** * ****** Excel3
How can we open a file in Binary mode and Text mode?what is the difference? PanTerra1
void main() { int i=5; printf("%d",i+++++i); } ME12
what are two categories of clint-server application development ?  1
plz answer....A program that takes 3 variables e.g a,b,c in as seperate parameters and rotates the values stored so that value goes a to b, b to c and c to a .  3
What are data breakpoints? Adobe1
 
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