Home

The output of the following code is:
#define sqr(x= x*x) 
main()
{
int a = 10, b = 5;
printf("%d, %d", sqr(a+b),sqr(++a));
}

A. 77, 121

B. 225, 121

C. 77< 144

D. Compilation error

Please do not use chat terms. Example: avoid using "grt" instead of "great".

You can do it
  1. What is Keywords?
  2. What is the right way to access value of structure variable book{ price, page }?
  3. When is std::bad_alloc exception thrown?
  4. ------ is the ternary operator
  5. What is the difference between overloaded functions and overridden functions?
  6. An array elements are always stored in _________ memory locations.
  7. What will be output if you will compile and execute the following c code?#include #define x 5+2 int…
  8. The function fopen() on failure returns---------------------.
  9. The-------------------- statement helps immediate exit from any part of the loop
  10. What does STL stand for?
  11. unsigned char has a range from 0 to ------------
  12. The main() function can be called from any other function.
  13. A continue statement causes execution to skip to
  14. Which one of the following is not a fundamental data type in C++
  15. The output of the following code is: int f(int a, int b); void main() {int a = 12, b=154; printf("%d",…
  16. The output of the following code is: main() { int sub[50]; for(i=0; i<=48;i++) { sub[i]=i; printf("%d",…
  17. C programming language was developed by
  18. The output of the following code is: #define sqr(x= x*x) main() {int a = 10, b = 5; printf("%d, %d",…
  19. The -------------------------- loop executes at least once.
  20. Identify the wrong statement
  21. printf("%d", sizeof('2')); will print 2.
  22. All macro substitutions in a program are done before compilation of the program.
  23. gets() and puts() are unformatted I/O functions.
  24. Which of the following is not an infinite loop
  25. A multidimensional array A[10][9] can store-------- number of elements
  26. Left shift operator rotates the bits on the left and places them to the right.
  27. continue statement is used
  28. The output of the following code is: main() { int k, num = 30; k = (num > 5 ? (num <= 10 ? 100…
  29. Which of the STL containers store the elements contiguously (in adjecent memory locations)?
  30. Right shifting an operand 1bit is equivalent to multiplying it by 2.