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

You can do it
  1. struct stud{int roll;char name[20];float marks;} *p;What will be the byte size of p?
  2. printf("%d", sizeof('2')); will print 2.
  3. What will be output if you will compile and execute the following c code?#include #define x 5+2 int…
  4. Operation between an integer and float always yields a float result.
  5. fprintf()function can be used to write into console.
  6. The output of the following code is: main() {int a = 0; for (; i = 0; i++) printf("%d", a); }
  7. && and & operators have the same meaning.
  8. Which of the following is invalid?
  9. do-while loop is useful when we want the statements within the loop must be executed
  10. Which of the following is not a preprocessor directive
  11. The default initial value of automatic storage class is 0.
  12. What is an array?
  13. Which of the following correctly describes C++ language?
  14. The expression "b = 3 ^ 2;" will evaluate b = 9.
  15. Nested macros are allowed.
  16. What will be output if you will compile and execute the following c code?#include int main(){ char c=125;…
  17. Union is used to hold different data at different time.
  18. Which of the following expressions is wrong
  19. The output of the following code is: void main() {int a = 0; while (a<=50) for(;;) if(++a % 50==0)…
  20. The output of the following code is: void main(){ int a = 20;printf("%d\t%d", ++a, a);}
  21. If the class name is X, what is the type of its “this” pointer (in a nonstatic, non-const…
  22. The size of signed integer is ------ bytes.
  23. All elements of a structure are allocated contiguous memory locations.
  24. ------ is the ternary operator
  25. unsigned' is a valid variable name.
  26. Which of the following is the most preferred way of throwing and handling exceptions?
  27. gets() and puts() are unformatted I/O functions.
  28. the value *(&i) is same as printing the value of address of i.
  29. The output of the following code is: main() {int a = 5, b = 6; (a == b? printf("%d", a)); }
  30. C programs are converted into machine language with the help of