int main(void) {
int x[100];
int *myPtr;
int j;
myPtr = &(x[100]);
for (j=0; j<100; j++) {
*myPtr = j;
myPtr ++;
}
printf("%d", *myPtr);
return 0;
}
this is my code (so far)^ these are my directions:
- Create a 1-dimensional integer array of size 100. a. Using a pointer load the array with consecutive numbers from 0 to 99. b. Using a pointer write out the array in ascending order. c. Using a pointer write out the array in descending order.