#ifdef TRUE
int I=0;

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 ?    3 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 ?    1 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 ?    0 Yes 0 No

Post New Answer

More C Interview Questions

What is Lazy evaluation in C? Give an example.

1 Answers  

illustrate the use of address operator and dereferencing operator with the help of a program guys plzzz help for this question

0 Answers  

different between overloading and overriding

3 Answers  

write an interactive program to generate the divisors of a given integer.

7 Answers   TCS,

consider the following program sigment int n,sum=1; switch(n) { case 2:sum=sum+2; case 3:sum*=2; break; default:sum=0;} if n=2, what is the value of sum a.0 b.6 c.3 d.none

7 Answers   TCS,

What is meaning of tree

0 Answers  

How does C++ help with the tradeoff of safety vs. usability?

1 Answers  

how to multiply two number taking input as a string (considering sum and carry )

2 Answers   Wipro,

Design a program using an array that lists even numbers and odd numbers separately from the 12 numbers supplied by a user.

8 Answers  

what is out put of the following code? #include class Base { Base() { cout<<"constructor base"; } ~Base() { cout<<"destructor base"; } } class Derived:public Base { Derived() { cout<<"constructor derived"; } ~Derived() { cout<<"destructor derived"; } } void main() { Base *var=new Derived(); delete var; }

3 Answers   Honeywell,

main() { int i=5; printf("%d",++i + i); } output is 10 ------------------------ main() { int i=5; printf("%d",i++ + i); }output is 12 why it is so? give appropiate reason....

2 Answers  

write a program to display the numbers in the following 4 4 3 3 2 2 1 1 0 1 1 2 2 3 3 4 4

1 Answers