1.

Write the output of the following C++ program code:Note: Assume all required header files are already being included in the program.void change(int *s){for(int i=0;i<4;i++){if(*s<40){if(*s%2==0)*s=*s+10;else*s=*s+11;}else{if(*s%2==0)*s=*s-10;else*s=*s-11;}cout<<*s<<" ";s++;}}void main(){int score[]={25,60,35,53};change(score);}

Answer»

The output is:

36 50 46 42



Discussion

No Comment Found

Related InterviewSolutions