Answer to Question #237028 in C++ for c++

Question #237028

what will happen when you run the following program?

#include<iostream>

void main()

{

int i=10, j=5;

int modResult=0;

in divResult=0;

modResult=i%j;

cout<<modResult<< " ";

divResult=i/modResult;

cout<<divResult;

}


1
Expert's answer
2021-09-14T07:35:38-0400

If you try to run this program the compiler will display the following error messages:


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS