R
Q. Determine Output
#define clrscr() 100 void main() { clrscr(); printf("%d", clrscr()); }
Preprocessor executes as a seperate pass before the execution of the compiler. So textual replacement of clrscr() to 100 occurs. The input program to compiler looks like this : void main() { 100; printf("%d", 100); } Note: 100; is an executable statement but with no action. So it doesn't give any problem.
You must be Logged in to update hint/solution
Be the first to start discuss.
Q. Can we change the starting index of an array from 0 to 1 in any way.?
Q. Array elements are always stored in ___ memory locations.
Q. Which of the following returns the square root of given number?
Q. What will be the output of the following code snippet?
Q. Numbers are stored and transmitted inside a computer in which format?
Q. Which of the following statements about stdout and stderr are true?
Discusssion
Login to discuss.