Advertisement
tei123

wskazniki

Apr 21st, 2016
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. #include <cstdlib>
  2. #include <iostream>
  3. #include <conio.h>
  4. using namespace std;
  5.  
  6. int main(int argc, char *argv[])
  7. {
  8. int a;
  9. int *wsk;
  10. wsk = &a;
  11. *wsk=40;
  12. int b=10;
  13.  
  14. cout << *wsk;
  15. cout << endl;
  16. cout << &wsk;
  17. cout << endl;
  18. cout << wsk;
  19. cout << endl;
  20. wsk = &b;
  21. cout << endl;
  22. cout << *wsk;
  23. cout << endl;
  24. cout << &wsk;
  25. cout << endl;
  26. cout << wsk;
  27. cout << endl;
  28. system("PAUSE");
  29. return EXIT_SUCCESS;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement