Home

The output of the following code is:
main() 
{
int k, num = 30;
k = (num > 5 ? (num <= 10 ? 100 : 200) : 500);
printf("
%d", num);
}

A. 200

B. 500

C. 30

D. Unpredictable

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: int f(int a, int b); void main() {int a = 12, b=154; printf("%d",…
  2. perror( ) function used to ?
  3. Bitwise operators can operate upon?
  4. enum helps to create user defined datatype.
  5. The output of the following code is: void main() {float a;int x = 10, y = 3; a = x / y;printf("%f",…
  6. Which of the following keyword supports dynamic method resolution?
  7. Which classes allow primitive types to be accessed as objects?
  8. What is C Tokens?
  9. What's wrong? for (int k = 2, k <=12, k++)
  10. What would be the output of the following program?int x=40;main(){int x=20;printf("%d",x);}
  11. Each pass through a loop is called a/an
  12. The expression (i + j)++ is illegal.
  13. continue statement is used
  14. The output of the following code is: main() { void msg() { printf("HELLO WORLD"); } }
  15. The output of the following code is: void main() {int a = 0; while (a<=50) for(;;) if(++a % 50==0)…
  16. The main() function can be called from any other function.
  17. No commas or blanks are allowed within an integer or a real constant.
  18. The -------------------------- loop executes at least once.
  19. C programs are converted into machine language with the help of
  20. The default initial value of automatic storage class is 0.
  21. ------ is the ternary operator
  22. How many times the following loop will execute?for (a = 0; a < 4; a++)printf("hello");
  23. Which of the following is allowed in a C Arithmetic instruction
  24. The output of the following code is: #define sqr(x= x*x) main() {int a = 10, b = 5; printf("%d, %d",…
  25. Which of the STL containers store the elements contiguously (in adjecent memory locations)?
  26. If the class name is X, what is the type of its “this” pointer (in a nonstatic, non-const…
  27. The output of the following code is:void main() {char a = 'B';switch (a) {case 'A' : printf("a"); case…
  28. gets() and puts() are unformatted I/O functions.
  29. The identifier argv[] is a pointer to an array of strings.
  30. printf() is not a library function.