MCQOPTIONS
Saved Bookmarks
| 1. |
What will be the output of the following C code?#include <stdio.h> int main() { int p = 4; int q = 1; int R = (q == 1) ? p :(p > q) ? (q = 1): p; printf("%d n", q); } |
| A. | 0 |
| B. | 1 |
| C. | 4 |
| D. | Compilation Error |
| E. | None of these |
| Answer» C. 4 | |