Question: What will be the output for the following program? #include using namespace std; int main() { } int a = 2; int b =

What will be the output for the following program? #include using namespace std; int main() { } int a = 2; 

What will be the output for the following program? #include using namespace std; int main() { } int a = 2; int b = -1; for (b= 5; b> 0; b--) { *= b; } a cout

Step by Step Solution

3.31 Rating (154 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Answer Starting with a 2 and b 5 it per... 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!