Home

The output of the following code is:
void main()
{
int z, a = 5, b = 3; z = a * 2 + 26 % 3;
printf("%d", z); }

A. 10

B. 0

C. 12

D. None of the above

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

You can do it
  1. When is std::bad_alloc exception thrown?
  2. Operation between an integer and float always yields a float result.
  3. Which options shows the correct hierarchy of arithmetic operators
  4. The output of the following code is: main() { int sub[50]; for(i=0; i<=48;i++) { sub[i]=i; printf("%d",…
  5. static variable will not always have assigned value.
  6. The output of the following code is: main() {int a = 5, b = 6; (a == b? printf("%d", a)); }
  7. A pointer is an indication of the variable to be accessed next.
  8. The expression "b = 3 ^ 2;" will evaluate b = 9.
  9. Which of the STL containers store the elements contiguously (in adjecent memory locations)?
  10. Which of the following expressions is wrong
  11. When a user defined function is defined in program, then it has to be called at least once from the…
  12. What will be output if you will compile and execute the following c code? #include int main(){ int i=320;…
  13. Which of the following is a valid destructor of the class name "Country"
  14. The output of the following code is: void main() {int a; int &b = a;a=100; printf("b=%d\ta=%d",…
  15. What is right way to Initialization array?
  16. Each pass through a loop is called a/an
  17. The output of the following code is: main() { unsigned int a = 10; while (a>=10) { int a; a-- ; }…
  18. The -------------------------- loop executes at least once.
  19. The output of the following code is: void main(){ int a = 20;printf("%d\t%d", ++a, a);}
  20. The expression (i + j)++ is illegal.
  21. The output of the following code is: void main() { static int a = 1, b, c;if (a>=2) b=2; c=3;printf("%d\t%d",…
  22. The contents of a file opened in 'r+' mode cannot be changed.
  23. fopen() function returns a pointer to the open file.
  24. && and & operators have the same meaning.
  25. Which of the following is not a preprocessor directive
  26. Which of the following is not recommended in a header file?
  27. printf("%d", sizeof('2')); will print 2.
  28. Which among the following is a unconditional control structure
  29. unsigned' is a valid variable name.
  30. Which of the following language is predecessor to C Programming Language?