#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 ?    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

Explain how do you determine the length of a string value that was stored in a variable?

0 Answers  

how to find greatet of 10 numbers without using array?

4 Answers  

What is meant by realloc()?

0 Answers  

what is event driven software and what is procedural driven software?

0 Answers  

When should volatile modifier be used?

0 Answers  

Explain that why C is procedural?

0 Answers   Verifone, Maveric,

How to delete a node from linked list w/o using collectons?

0 Answers   Zycus Infotech,

define switch statement?

6 Answers   CTS,

Can we initialize extern variable in c?

0 Answers  

When was c language developed?

0 Answers  

What is the output of the following program #include<stdio.h> main() { int i=0; fork(); printf("%d",i++); fork(); printf("%d",i++); fork(); wait(); }

8 Answers   Adobe, ADITI,

what is the purpose of the following code, and is there any problem with the code? void fn(long* p1, long* p2) { register int x = *p1; register int y = *p2; x ^= y; y ^= x; x ^= y; *p1 = x; *p2 = y; }

1 Answers   Google,