Home

What's wrong? (x = 4 && y = 5) ? (a = 5) ; (b = 6);

A. the question mark should be an equal sign

B. the first semicolon should be a colon

C. there are too many variables in the statement

D. the conditional operator is only used with apstrings

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

You can do it
  1. Which of the following is not a preprocessor directive
  2. Which one of the following is not a valid reserved keyword in C++
  3. The main() function can be called from any other function.
  4. The output of the following code is: void main() {float a;int x = 10, y = 3; a = x / y;printf("%f",…
  5. In the expression - 'x + y + 3z =20'
  6. the value *(&i) is same as printing the value of address of i.
  7. A pointer is an indication of the variable to be accessed next.
  8. Which of the following is not true about preprocessor directives
  9. What would be the output of the following program?int x=40;main(){int x=20;printf("%d",x);}
  10. Operation between an integer and float always yields a float result.
  11. How many times the following loop will execute?for (a = 0; a < 4; a++)printf("hello");
  12. When a user defined function is defined in program, then it has to be called at least once from the…
  13. Which of the following is invalid?
  14. If 'str' is a string of 7 characters, the statement printf("%4s", str); will display ------characters.
  15. C programs are converted into machine language with the help of
  16. The output of the following code is:void change (char *k) {k="Hello";return; } main() { char *ch = "World";;change(ch);…
  17. enum helps to create user defined datatype.
  18. Which among the following is a unconditional control structure
  19. The output of the following code is: int f(int a, int b); void main() {int a = 12, b=154; printf("%d",…
  20. Expression 4**3 evaluates to 64.
  21. fopen() function returns a pointer to the open file.
  22. What will be output if you will compile and execute the following c code?#include #define x 5+2 int…
  23. Which of the following language is predecessor to C Programming Language?
  24. The output of the following code is: main() { void msg() { printf("HELLO WORLD"); } }
  25. The output of the following code is: main() {int a[10], i; for (i = 1; I <= 0; i++) {scanf("%d",…
  26. Left shift operator rotates the bits on the left and places them to the right.
  27. static variable will not always have assigned value.
  28. The contents of a file opened in 'r+' mode cannot be changed.
  29. Which one of the following is not a fundamental data type in C++
  30. The expression (i + j)++ is illegal.