Home

The output of the following code is:
main() 
{
int a = 0;
for (; i = 0; i++)
printf("%d", a);
}

A. 0

B. Nothing will be displayed

C. Infinite loop

D. None of the above

Related Questions

  1. Expression 4**3 evaluates to 64.
  2. The statement "for (i = 0, j = 2; j <= 10; j++)" is a valid statement in 'C'.
  3. Operation between an integer and float always yields a float result.
  4. A C variable cannot start with
  5. Character data types cannot be declared as unsigned.
  6. The output of the following code is: void main() {int a = 0; while (a<=50) for(;;) if(++a % 50==0)…
  7. Which of the following expressions is wrong
  8. Structures within structures cannot be created.
  9. The same variable names of automatic type can be used in different functions without any conflict.
  10. All macro substitutions in a program are done before compilation of the program.
  11. fprintf()function can be used to write into console.
  12. static variable will not always have assigned value.
  13. A declaration float a, b; occupies ___ of memory
  14. When is std::bad_alloc exception thrown?
  15. 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",…
  16. C is a ___ language
  17. The output of the following code is: void main() {int a; int &b = a;a=100; printf("b=%d\ta=%d",…
  18. A pointer is an indication of the variable to be accessed next.
  19. The output of the following code is: void main() {int a = 1, b=2; int *ip; ip=&a; b=*ip; printf("%d",…
  20. A function to be called must be ended with a----------------
  21. How many times the following loop will execute?for (a = 0; a < 4; a++)printf("hello");
  22. The expression (i + j)++ is illegal.
  23. Single operations involving entire arrays are permitted in C.
  24. What's wrong? (x = 4 && y = 5) ? (a = 5) ; (b = 6);
  25. unsigned' is a valid variable name.
  26. It is necessary to initialize the array at the time of declaration.
  27. Which of the following is not true about preprocessor directives
  28. The output of the following code is: main() { void msg() { printf("HELLO WORLD"); } }
  29. # define PI = 8;' is the correct declaration of macros.
  30. perror( ) function used to ?

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