What is the output of the following program? Show the changes in memory #include using namespace std;

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;

}

GET HELP WITH YOUR HOMEWORK PAPERS @ 25% OFF

For faster services, inquiry about  new assignments submission or  follow ups on your assignments please text us/call us on +1 (251) 265-5102

Write My Paper Button

WeCreativez WhatsApp Support
We are here to answer your questions. Ask us anything!
👋 Hi, how can I help?
Scroll to Top