#ifdef TRUE
int I=0;
#endif

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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

The performance of an operation in several steps with each step using the output of the preceding step a) recursion b) search c) call by value d) call by reference

676


why use "return" statement a) on executing the return statement it immediately transfers the control back to the calling program b) it returns the value present in the parentheses return, to the calling program c) a & b d) none of the above

612


What are linker error?

615


Explain which function in c can be used to append a string to another string?

590


Write a program to print fibonacci series using recursion?

587






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

623


What is the difference between abs() and fabs() functions?

608


Explain data types & how many data types supported by c?

586


In this assignment you are asked to write a multithreaded program to find the duplicates in an array of 10 million integers. The integers are between -5000,000 to 5000,000 and are generated randomly. Use 10 threads, each thread works on 1000,000 integers. Compare the time needed to accomplish the task with single thread of execution program. Do not include the time to fill the array with integers in the execution time.

2685


What are the features of c languages?

632


7-Given an index k, return the kth row of the Pascal's triangle. For example, when k = 3, the row is [1,3,3,1]. For reference look at the following standard pascal’s triangle.

2222


Ow can I insert or delete a line (or record) in the middle of a file?

577


What is pass by reference in c?

615


Is it possible to use curly brackets ({}) to enclose single line code in c program?

800


Explain about the functions strcat() and strcmp()?

598