Home

The output of the following code is:
void main() 
{
char a = 'B';
switch (a)
{
case 'A' : printf("a");
case 'B' : printf("b");
default : printf("c");
}

A. B

B. b

C. bca

D. bc

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

You can do it
  1. Which of the STL containers store the elements contiguously (in adjecent memory locations)?
  2. Which of the following is invalid?
  3. Which of the following language is predecessor to C Programming Language?
  4. Which one of the following is not a valid reserved keyword in C++
  5. A function to be called must be ended with a----------------
  6. Which escape character can be used to beep from speaker in C?
  7. The array 'char name[10] can consist of a maximum of 9 characters.
  8. strcat() function ----------------------- two strings.
  9. Single operations involving entire arrays are permitted in C.
  10. What does STL stand for?
  11. The output of the following code is: void main(){ int a = 20;printf("%d\t%d", ++a, a);}
  12. printf("%d", sizeof('2')); will print 2.
  13. Which one of the following is not a fundamental data type in C++
  14. Which of the following expressions is wrong
  15. What is the right way to access value of structure variable book{ price, page }?
  16. The output of the following code is:void main() {char a = 'B';switch (a) {case 'A' : printf("a"); case…
  17. Which header file is essential for using strcmp() function?
  18. The -------------------------- loop executes at least once.
  19. char *s[10] defines an array of ------------------------
  20. What's wrong? for (int k = 2, k <=12, k++)
  21. What will be output if you will compile and execute the following c code?#include int main(){ float…
  22. The output of the following code is: main() {int a[10], i; for (i = 1; I <= 0; i++) {scanf("%d",…
  23. The expression 'int j = 6 + 3 % -9;' evaluates to -1.
  24. p++ executes faster than p + 1.
  25. If 'str' is a string of 7 characters, the statement printf("%4s", str); will display ------characters.
  26. Right shifting an operand 1bit is equivalent to multiplying it by 2.
  27. Which of the following correctly describes C++ language?
  28. In the expression - 'x + y + 3z =20'
  29. Each pass through a loop is called a/an
  30. enum helps to create user defined datatype.