Page 1 of 1

= = #include Let's figure out: using namespace std; value1==? / int main() { value2==? int valuel 5, value2 =

Posted: Sun May 15, 2022 8:24 am
by answerhappygod
Include Iostream Let S Figure Out Using Namespace Std Value1 Int Main Value2 Int Valuel 5 Value2 1
Include Iostream Let S Figure Out Using Namespace Std Value1 Int Main Value2 Int Valuel 5 Value2 1 (40.34 KiB) Viewed 53 times
= = #include <iostream> Let's figure out: using namespace std; value1==? / int main() { value2==? int valuel 5, value2 = 15; Also, pl=? p2=? int *p1, *p2; pl &valuel; // pl = address of valuel p2 &value2; // p2 = address of value2 *p1 10; // value pointed to by pl=10 *p2 = *p1; // value pointed to by p2= value // pointed to by pl pl = p2; // pl = p2 (pointer value copied) *p1 20; // value pointed to by pl = 20 cout << "value1==" << valuel << "/ value2==" << value2; return 0; } 26