This commit is contained in:
2024-03-05 14:19:35 +03:00
parent b199446865
commit a4b587dc41
31 changed files with 0 additions and 0 deletions

15
w3school/pointerarrays2.c Normal file
View File

@ -0,0 +1,15 @@
#include <stdio.h>
int main() {
int myNumbers[4] = {25, 50, 75, 100};
int *ptr = myNumbers;
int i;
*myNumbers = 101;
*(myNumbers + 1) = 55;
for (i = 0; i < 4; i++) {
printf("%d\n", *(ptr + i));
}
printf("%d\n", *(myNumbers + 1));
return 0;
}