Home

The output of the following code is:
void main()
{
int a = 20;
printf("%d\t%d
", ++a, a);
}

A. 21 21

B. 20 21

C. 21 20

D. 20 20

You can do it
  1. continue statement is used
  2. Which of the following is not an infinite loop
  3. The output of the following code is:void main() {char a = 'B';switch (a) {case 'A' : printf("a"); case…
  4. The output of the following code is: void main() {int a = 1, b=2; int *ip; ip=&a; b=*ip; printf("%d",…
  5. Expression 4**3 evaluates to 64.
  6. Which one of the following is not a fundamental data type in C++
  7. The output of the following code is: main() {int a = 5, b = 6; (a == b? printf("%d", a)); }
  8. If the class name is X, what is the type of its “this” pointer (in a nonstatic, non-const…
  9. All macro substitutions in a program are done before compilation of the program.
  10. Which classes allow primitive types to be accessed as objects?
  11. struct stud{int roll;char name[20];float marks;} *p;What will be the byte size of p?
  12. && and & operators have the same meaning.
  13. A declaration float a, b; occupies ___ of memory
  14. The output of the following code is: main() {int a = 0; for (; i = 0; i++) printf("%d", a); }
  15. Which of the following expressions is wrong
  16. The value of an enumerated datatype can be read using scanf() function.
  17. strcat() function ----------------------- two strings.
  18. What will be output if you will compile and execute the following c code?#include int main(){ float…
  19. The output of the following code is: void main() {int a = 0; while (a<=50) for(;;) if(++a % 50==0)…
  20. Which of the STL containers store the elements contiguously (in adjecent memory locations)?
  21. A pointer is an indication of the variable to be accessed next.
  22. The output of the following code is: main() {int a[10], i; for (i = 1; I <= 0; i++) {scanf("%d",…
  23. An array elements are always stored in _________ memory locations.
  24. A C variable cannot start with
  25. The printf() function retunes which value when an error occurs?
  26. When is std::bad_alloc exception thrown?
  27. Which of the following keyword supports dynamic method resolution?
  28. Which of the following is not a standard exception built in C++.
  29. unsigned' is a valid variable name.
  30. Which of the following is allowed in a C Arithmetic instruction