Problem Statement - 01D
Find and write the output of the following C++ program code:
Note: Assume all required header files are already included in the program.
#define Big(A,B) (A>B)?A+1:B+2 void main() { char W[] = "Exam"; int L=strlen(W); for(int i =0; i<L-1; i++) W[i] = Big(W[i],W[i+1]); cout<<W<<endl; }
Solution
CSKC| Created: 8-Jan-2019 | Updated: 14-Jan-2019|CBSE12D-2017