Problem Statement - Output of a ternary operator operation
Write output of the following program using the ternary operation logic.
#include <iostream.h>
int main()
{
int a=10,b=23;
int c=a>b?a=b:b=a;
cout<<c<<endl;
return 0;
}
Solution
Created: 7-Jan-2018 00:18 | Updated: 22-Mar-2026 20:17|
