#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
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
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
What are linker error?
Explain which function in c can be used to append a string to another string?
Write a program to print fibonacci series using recursion?
What is the advantage of using #define to declare a constant?
What is the difference between abs() and fabs() functions?
Explain data types & how many data types supported by c?
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.
What are the features of c languages?
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.
Ow can I insert or delete a line (or record) in the middle of a file?
What is pass by reference in c?
Is it possible to use curly brackets ({}) to enclose single line code in c program?
Explain about the functions strcat() and strcmp()?