Question: C++: Execute the following program and identify the variables that have been created but not destroyed when the cout statement in the function advertissement is
C++: Execute the following program and identify the variables that have been created but not destroyed when the cout statement in the function advertissement is executed. What is the scope of each? What is the value of each?

OUTPUT: x = z Hey ho, I'm from Idaho! You gotta taste it all! x = z
include Kiostream using namespace std void advertisement void potato int main char x; cout "x x endl; potato cout "x x endl; return 0; void advertisement char x; cout x "ou gotta taste it all! "; void potato char x; cout x ey ho I'm from Idaho An advertisement
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
