Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- float *wsk,*wsk2, a,b;
- a=10;
- b=34;
- wsk=&a;
- wsk2=&wsk;
- printf("wartosci wskaznikow wsk= %p, wsk2= %p\n",wsk,wsk2);
- printf("wartosci na ktore wskazuja: wsk %f; wsk2: %f \n",*wsk, *wsk2);
- a=b;
- printf("po podmianie\n");
- printf("wartosci wskaznikow wsk= %p, wsk2= %p\n",wsk,wsk2);
- printf("wartosci na ktore wskazuja: wsk %f; wsk2: %f",*wsk, *wsk2);
- wsk=5;
- printf("\n po podstawieniu 5\n");
- printf("wartosci wskaznikow wsk= %p, wsk2= %p\n",wsk,wsk2);
- printf("wartosci na ktore wskazuja: wsk %f; wsk2: %f",*wsk, *wsk2);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement