= = #include Let's figure out: using namespace std; value1==? / int main() { value2==? int valuel 5, value2 =
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
= = #include Let's figure out: using namespace std; value1==? / int main() { value2==? int valuel 5, value2 =
= = #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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!