Advertisement
makos

Untitled

Jul 23rd, 2011
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.24 KB | None | 0 0
  1. #include <stdlib.h>
  2.  
  3. int main(void) {
  4.   int array[11] = {0,1,2,3,4,5,6,7,8,9,10};
  5.   int *ptr;
  6.  
  7.   ptr = array;
  8.   int i;
  9.   for(i = 0; i < 11; i++) {
  10.     printf("array[%d]: %d\n", i, *ptr);
  11.     *ptr++;
  12.   }
  13.   getchar();
  14.   return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement