Advertisement
Guest User

Tablice ze wskaźnikami

a guest
Mar 26th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. /* run this program using the console pauser or add your own getch, system("pause") or input loop */
  5.  
  6. int main() {
  7.  
  8. int T[10];
  9. int *ws=T;
  10.  
  11. int i=0;
  12. int j=0;
  13.  
  14. for (i=0;i<10;i++)
  15. {
  16. *(ws+i)=i;
  17.  
  18.  
  19. }
  20.  
  21. for (j=0;j<10;j++)
  22. {
  23. printf("%d",*(ws+i));
  24.  
  25. }
  26. return 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement