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
which one is not preprocessor directive
a)#if b)#elif c)#undef d)#pragma
 Question Submitted By :: Sandipan
I also faced this Question!!     Rank Answer Posted By  
 
  Re: which one is not preprocessor directive a)#if b)#elif c)#undef d)#pragma
Answer
# 1
elif is not a preprocessor
 
Is This Answer Correct ?    0 Yes 5 No
C.sureshkumar
 
  Re: which one is not preprocessor directive a)#if b)#elif c)#undef d)#pragma
Answer
# 2
Ans is #if, no preprocessor directive with #if. it is #ifdef
or #ifndef
 
Is This Answer Correct ?    6 Yes 1 No
Wizard
 
 
 
  Re: which one is not preprocessor directive a)#if b)#elif c)#undef d)#pragma
Answer
# 3

    #elif is not a preprocessor
 
Is This Answer Correct ?    0 Yes 2 No
Kalpana.y
 
  Re: which one is not preprocessor directive a)#if b)#elif c)#undef d)#pragma
Answer
# 4


    #elif is not a preprocessor
 
Is This Answer Correct ?    0 Yes 2 No
Kalpana.y
 
  Re: which one is not preprocessor directive a)#if b)#elif c)#undef d)#pragma
Answer
# 5
#pragma is not a preprocessor
 
Is This Answer Correct ?    0 Yes 2 No
Jobin Mathew
 
  Re: which one is not preprocessor directive a)#if b)#elif c)#undef d)#pragma
Answer
# 6
#pragma is not a preprocessor directive
 
Is This Answer Correct ?    0 Yes 3 No
Debasish Mishra
 
  Re: which one is not preprocessor directive a)#if b)#elif c)#undef d)#pragma
Answer
# 7
#if is not the preprocessor.......
 
Is This Answer Correct ?    1 Yes 2 No
Thoufik
 
  Re: which one is not preprocessor directive a)#if b)#elif c)#undef d)#pragma
Answer
# 8
All are preprocessor Directives..
Refer http://msdn2.microsoft.com/en-us/library/79yewefw
(VS.71).aspx

for details
 
Is This Answer Correct ?    8 Yes 0 No
Prem
 
  Re: which one is not preprocessor directive a)#if b)#elif c)#undef d)#pragma
Answer
# 9
All are preprocessor directives
 
Is This Answer Correct ?    2 Yes 0 No
Shiva
 
  Re: which one is not preprocessor directive a)#if b)#elif c)#undef d)#pragma
Answer
# 10
All are Preprocessor directives
below are some more preprocessors for your reference:

#define 
#error 
#import 
#undef 
#elif 
#if 
#include 
#using 
#else 
#ifdef 
#line   
#endif 
#ifndef 
#pragma
 
Is This Answer Correct ?    7 Yes 0 No
Hyderabadi
 
  Re: which one is not preprocessor directive a)#if b)#elif c)#undef d)#pragma
Answer
# 11
all are preprocessor
 
Is This Answer Correct ?    2 Yes 0 No
Soumya
 
  Re: which one is not preprocessor directive a)#if b)#elif c)#undef d)#pragma
Answer
# 12
All are preprocessor directive
 
Is This Answer Correct ?    2 Yes 0 No
Magesh
 
  Re: which one is not preprocessor directive a)#if b)#elif c)#undef d)#pragma
Answer
# 13
all r preprocessor directive
 
Is This Answer Correct ?    1 Yes 0 No
Neeraj Kandwal
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
what will be the result of the following program ? char *gxxx() { static char xxx[1024]; return xxx; } main() { char *g="string"; strcpy(gxxx(),g); g = gxxx(); strcpy(g,"oldstring"); printf("The string is : %s",gxxx()); } a) The string is : string b) The string is :Oldstring c) Run time error/Core dump d) Syntax error during compilation e) None of these IBM2
Toggle nth bit in a given integer - num Qualcomm2
proc() { static i=10; printf("%d",i); } If this proc() is called second time, what is the output? Hughes5
totally how much header files r in c language TCS4
How can I allocate arrays or structures bigger than 64K?  4
what are the languages used in c#? Infosys1
Which of the Following is not defined in string.h? A)strspn() B)strerror() C)memchr() D)strod() Accenture1
Write a program to accept a character & display its corrosponding ASCII value & vice versa?  4
program to find the ASCII value of a number  5
how to implement stack operation using singly linked list  1
#include<stdio.h> main() { char s1[]="Ramco"; char s2[]="Systems"; s1=s2; printf("%s",s1); } Find the output CitiGroup4
what is the size of an integer variable?  1
Look at the Code: main() { int a[]={1,2,3},i; for(i=0;i<3;i++) { printf("%d",*a); a++; } } Which Statement is/are True w.r.t the above code? I.Executes Successfully & Prints the contents of the array II.Gives the Error:Lvalue Required III.The address of the array should not be changed IV.None of the Above. A)Only I B)Only II C)II & III D)IV Accenture3
write a own function to compare two strings with out using stringcomparition function? LG-Soft3
do ne body have any idea about the salary for the we r going to have interview. yup .. u got it right ..i m talking abt NIC.  1
Explain in detail how strset (string handling function works )pls explain it with an example.  1
We can draw a box in cprogram by using only one printf();& without using graphic.h header file? NIIT3
void main() { int s[4][2]={ {1234,56},{1212,33},{1434,80},{1312,78} }; int (*p)[2]; int i,j,*pint; for(i=0;i<=3;i++) { p=&s[i]; pint=p; printf("\n"); for(j=0;j<=1;j++) printf("%d",*(pint+j)); } } while running this program it shows a warning-suspicious pointer conversion ie pint=p; my que is why should we assign the value of p to pint again.why cant we use it directly as *(p+j)..but if i use like tat the o/p is garbage value..  1
can we write a program in c for printf and scanf without using header file stdio.h  1
What's wrong with "char *p; *p = malloc(10);"?  5
 
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