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
sunmitra| Created: 7-Jan-2018 | Updated: 14-Dec-2018|