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