Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


#ifdef TRUE
int I=0;
#endif

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

Answers were Sorted based on User's Feedback



#ifdef TRUE int I=0; #endif main() { int j=0; printf("%d %d\n",i,j); } ..

Answer / jai

Compilation error since 1) TRUE definition is not visible
in above program, 2) i variable is not declared.

Is This Answer Correct ?    4 Yes 0 No

#ifdef TRUE int I=0; #endif main() { int j=0; printf("%d %d\n",i,j); } ..

Answer / vignesh1988i

compailer error

Is This Answer Correct ?    2 Yes 0 No

#ifdef TRUE int I=0; #endif main() { int j=0; printf("%d %d\n",i,j); } ..

Answer / rohit

Compilation error due to 'i' is not declared only.
Not cause by visibility of TRUE macro.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More C Interview Questions

what is ur strangth & weekness

0 Answers   Cognizant, LG Soft, NetEnrich,


Find Index of least significant bit set in an Integer. ex. int value is say 10001000 results should be 4.

1 Answers  


What is the difference between near, far and huge pointers?

0 Answers  


What is the most efficient way to count the number of bits which are set in a value?

4 Answers  


Can you think of a way when a program crashed before reaching main? If yes how?

2 Answers  


What would happen to X in this expression: X += 15; (assuming the value of X is 5)

0 Answers  


Why can arithmetic operations not be performed on void pointers?

0 Answers  


What is c variable?

0 Answers  


What is the benefit of using #define to declare a constant?

0 Answers  


What are pointers? What are different types of pointers?

0 Answers   Fidelity,


Will Macros support multiple arguments ?

7 Answers   Oracle,


Write a program to print “hello world” without using semicolon?

0 Answers  


Categories