MCQOPTIONS
Saved Bookmarks
| 1. |
What will be the final values of p and q in the following C code? #include <stdio.h> int n = 0; int main() { int p = (funA() + funB()) | funB(); //bitwise or int q = funB() | (funA() + funB()); //bitwise or } int funA() { if (n == 0) return n + 1; else return n - 1; } int funB() { return n++; } |
| A. | k value is 0 and L value is 0 |
| B. | k and L value are undefined |
| C. | Compilation Error |
| D. | Runtime Error |
| E. | None of these |
| Answer» D. Runtime Error | |