Question: what is the output of following code? void main() { int x, y=1, tot=0; (x=1;x <5;x+=4) for { }| } if(x==4) continue; tot+=x*y++; cout

 what is the output of following code?void main() { int x,y=1, tot=0; (x=1;x <5;x+=4) for { }| } if(x==4) continue; tot+=x*y++; cout < 

void main() { int x, y=1, tot=0; (x=1;x

Step by Step Solution

3.50 Rating (147 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The code provided seems to be in C and contains a main function with a loop that calculates some val... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!