#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

regarding pointers concept

0 Answers  


what is the code for getting the output as * ** ***

5 Answers   Caritor,


Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result

0 Answers  


Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......

0 Answers  


Why ordinary variable store only one value  

0 Answers  






Why we not create function inside function.

0 Answers  


Which is the best sort method for library management?

1 Answers   Microsoft,


without using arithmatic operator convert an intger variable x into x+1

3 Answers  


Difference between fopen() and open()?

3 Answers   Aricent,


How can we allocate array or structure bigger than 64kb?

2 Answers   CSC,


How to print all the 26 alphabets in this order in C. AbCdEfGh..... it should print dynamically from a to z and do not print this using pgm like this print("Ab......"); Use loops or anything to print all alphabets

2 Answers   Hexaware,


write a c program to add two integer numbers without using arithmetic operator +

13 Answers   Value Labs,






Categories