Home

The output of the following code is:
main() 
{
int sub[50];
for(i=0; i<=48;i++)
{
sub[i]=i;
printf("
%d", sub[i]);
}
}

A. 0 to 48 will be displayed

B. 48

C. 49

D. Compilation Error

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

You can do it
  1. Which of the following expressions is wrong
  2. The output of the following code is: void main(){ int a = 20;printf("%d\t%d", ++a, a);}
  3. A C variable cannot start with
  4. Which one of the following is not a valid reserved keyword in C++
  5. No commas or blanks are allowed within an integer or a real constant.
  6. Which of the following is not a preprocessor directive
  7. Which of the following correctly describes C++ language?
  8. A continue statement causes execution to skip to
  9. && and & operators have the same meaning.
  10. Which of the following is not an infinite loop
  11. fprintf()function can be used to write into console.
  12. Which of the following is not recommended in a header file?
  13. 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",…
  14. The output of the following code is: main() { int sub[50]; for(i=0; i<=48;i++) { sub[i]=i; printf("%d",…
  15. What is the difference between overloaded functions and overridden functions?
  16. C programming language was developed by
  17. A multidimensional array A[10][9] can store-------- number of elements
  18. Which of the following keyword supports dynamic method resolution?
  19. The output of the following code is: void main() {int a = 0; while (a<=50) for(;;) if(++a % 50==0)…
  20. What is right way to Initialization array?
  21. C is a ___ language
  22. What is the right way to access value of structure variable book{ price, page }?
  23. The contents of a file opened in 'r+' mode cannot be changed.
  24. Only one break can be used in one loop.
  25. Which of the following is invalid?
  26. Which one of the following is not a fundamental data type in C++
  27. What does STL stand for?
  28. The main() function can be called from any other function.
  29. The output of the following code is:void change (char *k) {k="Hello";return; } main() { char *ch = "World";;change(ch);…
  30. The same variable names of automatic type can be used in different functions without any conflict.