#include using namespace std; int main() { int p = 7, q = 9, r; r = (p > q) ? p : q; cout << r; return 0; }
Here the condition is false on conditional operator, so the q value is assigned to r.
Previous Question Next Question
Your comments will be displayed only after manual approval.