SHARE
TWEET

Tablice ze wskaźnikami

a guest Mar 26th, 2019 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top