#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 are far pointers?

1 Answers  


How can I find out if there are characters available for reading?

0 Answers  


Explain how can I read and write comma-delimited text?

0 Answers  


Write a C/C++ program that connects to a MySQL server and checks intrusion attempts every 5 minutes. If an intrusion attempt is detected beep the internal speaker to alert the administrator. A high number of aborted connects to MySQL at a point in time may be used as a basis of an intrusion.

1 Answers  


what is self refrential structure

3 Answers   HCL,






implement NAND gate logic in C code without using any bitwise operatior.

4 Answers   Alcatel,


write a programming in c to find the sum of all elements in an array through function.

0 Answers  


send me the code of flow chart generator using C-programming language amd this code should calculate the time and space complexity of the given progran and able to generate flowchart according to the given program?

0 Answers   TCS,


Determine if a number is a power of 2 at O(1).

2 Answers  


What is the explanation for modular programming?

0 Answers  


What is function definition in c?

0 Answers  


what is use of malloc and calloc?

0 Answers  


Categories