Home

Which of the following shows the correct hierarchy of arithmetic operations in C

A. / + *

B. * / +

C. + / *

D. * / + -

You can do it
  1. Each pass through a loop is called a/an
  2. The output of the following code is: void main() {float a;int x = 10, y = 3; a = x / y;printf("%f",…
  3. A function to be called must be ended with a----------------
  4. The output of the following code is: main() {int a = 5, b = 6; (a == b? printf("%d", a)); }
  5. The expression "int i = j = k = 0;" is invalid.
  6. What's wrong? (x = 4 && y = 5) ? (a = 5) ; (b = 6);
  7. Which of the STL containers store the elements contiguously (in adjecent memory locations)?
  8. Union is used to hold different data at different time.
  9. Which of the following is invalid?
  10. The statement "for (i = 0, j = 2; j <= 10; j++)" is a valid statement in 'C'.
  11. How many times the following loop will execute?for (a = 0; a < 4; a++)printf("hello");
  12. The output of the following code is: main() {int a[10], i; for (i = 1; I <= 0; i++) {scanf("%d",…
  13. The output of the following code is: void main() {int a = 1, b=2; int *ip; ip=&a; b=*ip; printf("%d",…
  14. struct stud{int roll;char name[20];float marks;} *p;What will be the byte size of p?
  15. What will be output if you will compile and execute the following c code?#include int main(){ float…
  16. The expression (i + j)++ is illegal.
  17. fprintf()function can be used to write into console.
  18. The output of the following code is: main() {int a = 0; for (; i = 0; i++) printf("%d", a); }
  19. All macro substitutions in a program are done before compilation of the program.
  20. Structures within structures cannot be created.
  21. All elements of a structure are allocated contiguous memory locations.
  22. The output of the following code is:void change (char *k) {k="Hello";return; } main() { char *ch = "World";;change(ch);…
  23. Which options shows the correct hierarchy of arithmetic operators
  24. Which of the following correctly describes C++ language?
  25. The output of the following code is: main() { xyz: goto abc;printf("Hello"); abc: printf("World");goto…
  26. do-while loop is useful when we want the statements within the loop must be executed
  27. Which of the following is not recommended in a header file?
  28. An array elements are always stored in _________ memory locations.
  29. printf("%d", sizeof('2')); will print 2.
  30. Left shift operator rotates the bits on the left and places them to the right.