Home

The output of the following code is:
void main() 
{
static int a = 1, b, c;
if (a>=2) b=2; c=3;
printf("%d\t%d", b,c);
}

A. 2 3

B. 0 3

C. 0 0

D. 2 0

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

You can do it
  1. The output of the following code is: void main(){ int a = 20;printf("%d\t%d", ++a, a);}
  2. unsigned' is a valid variable name.
  3. What's wrong? while( (i < 10) && (i > 24))
  4. unsigned char has a range from 0 to ------------
  5. The output of the following code is: main() { unsigned int a = 10; while (a>=10) { int a; a-- ; }…
  6. All elements of a structure are allocated contiguous memory locations.
  7. The output of the following code is: #define sqr(x= x*x) main() {int a = 10, b = 5; printf("%d, %d",…
  8. Which of the following is invalid?
  9. Every if statement can be converted into an equivalent switch statement.
  10. The output of the following code is: main() {int a = 5, b = 6; (a == b? printf("%d", a)); }
  11. What will be output if you will compile and execute the following c code?#include #define x 5+2 int…
  12. p++ executes faster than p + 1.
  13. The -------------------------- loop executes at least once.
  14. The default initial value of automatic storage class is 0.
  15. The output of the following code is: void main() {float a;int x = 10, y = 3; a = x / y;printf("%f",…
  16. What's wrong? (x = 4 && y = 5) ? (a = 5) ; (b = 6);
  17. The expression 'int j = 6 + 3 % -9;' evaluates to -1.
  18. What is the right way to access value of structure variable book{ price, page }?
  19. What would be the output of the following program?int x=40;main(){int x=20;printf("%d",x);}
  20. Which of the following is the most preferred way of throwing and handling exceptions?
  21. The output of the following code is: main() {int a = 0; for (; i = 0; i++) printf("%d", a); }
  22. Which of the STL containers store the elements contiguously (in adjecent memory locations)?
  23. /* The C language./* is a procedural language .*/*/The above statement is valid.
  24. The output of the following code is:void change (char *k) {k="Hello";return; } main() { char *ch = "World";;change(ch);…
  25. Which of the following correctly describes C++ language?
  26. # define PI = 8;' is the correct declaration of macros.
  27. The output of the following code is: void main() {int a; int &b = a;a=100; printf("b=%d\ta=%d",…
  28. What's wrong? for (int k = 2, k <=12, k++)
  29. Which of the following is an example of compounded assignment statement?
  30. The output of the following code is: main() {int a[10], i; for (i = 1; I <= 0; i++) {scanf("%d",…