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
#ifdef TRUE
int I=0;
#endif

main()
{
int j=0;
printf("%d %d\n",i,j);
}

 Question Submitted By :: Rajesh
I also faced this Question!!     Rank Answer Posted By  
 
  Re: #ifdef TRUE int I=0; #endif main() { int j=0; printf("%d %d\n",i,j); }
Answer
# 1
Compilation error since 1) TRUE definition is not visible 
in above program, 2) i variable is not declared.
 
Is This Answer Correct ?    1 Yes 0 No
Jai
 
  Re: #ifdef TRUE int I=0; #endif main() { int j=0; printf("%d %d\n",i,j); }
Answer
# 2
compailer error
 
Is This Answer Correct ?    0 Yes 0 No
Vignesh1988i
 
 
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
Will Macros support multiple arguments ? Oracle5
f=(x>y)?x:y a) f points to max of x and y b) f points to min of x and y c)error HCL3
the code is::::: if(condition) printf("hello"); else printf("world"); WHAT WILL BE THE CONDITION IN IF IN SUCH A WAY THAT BOTH HELLO AND WORLD ARE PRINTED IN A SINGLE ATTEMPT?????? SINGLE ATTEMPT IN THE SENSE... IT MUST FIRST PRINT "HELLO" AND IT MUST GO TO ELSE PART AND PRINT "WORLD"..... NO LOOPS, RECURSION ARE ALLOWED........................ IBM7
write a own function for strstr LG-Soft1
What is the difference b/w main() in C language and main() in C++.  3
What does extern mean in a function declaration?  2
What is structure packing ? HP1
struct ptr { int a; char b; int *p; }abc; what is d sizeof structure without using "sizeof" operator?? Verifone3
what is the maximum no. of bytes calloc can allocate Mphasis2
explain memory layout of a C program  1
Software Interview Questions CAT1
printf("%d",(printf("Hello")); What it returns? TCS18
in C-programming language without using printf statement can we get output r not ? if yes how and if no also how ?  4
What's the difference between a linked list and an array?  8
a 'c' program to tell that the set of three coordinates lie on a same line Persistent1
what are brk, sbrk? Oracle1
#include main() { int i=1,j=2; switch(i) { case 1: printf("GOOD"); break; case j: printf("BAD"); break; } } ME4
difference between semaphores and mutex?  1
1.write a program to merge the arrays 2.write efficient code for extracting unique elements from a sorted list of array? Qualcomm1
In scanf h is used for BFL2
 
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