Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

What is the output of the following program? Show the changes in memory #include <iostream> using namespace std; int main() { int a = 3, b = 3, p = 1, r = 1, i=1; cout<<a-<<" "&

What is the output of the following program? Show the changes in memory

 #include <iostream>

 using namespace std;

 int main()

{

 int a = 3, b = 3, p = 1, r = 1, i=1; 

cout<<a-<<" "<<++b<<endl;

 while(i <= b)

{

 r = 0;

 r+=a;

 p*=r;

cout<<a<<"and ''<<b<<" and "<<p<<endl;

 return 0;

}

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question