Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int x;
- int *w_x;
- w_x=&x;
- cout <<"Podaj wartosc x:"<<endl;
- cin>>*w_x; //cin>>x;
- cout <<"Wartosc zapisana w zmiennej x:"<<*w_x<<endl;//odczytanie wartoœci
- cout <<"Adres zmiennej x: "<<w_x<<endl;
- *w_x=10;
- cout <<"Wartosc zapisana w zmiennej x:"<<*w_x<<endl;//odczytanie wartoœci
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement