vault backup: 2024-10-28 11:20:14

This commit is contained in:
zleyyij 2024-10-28 11:20:14 -06:00
parent 21dd78dedc
commit 77e7cdf760

View File

@ -24,4 +24,11 @@ The following expressions are illegal because of mismatched types:
- (a) `p == a[0]` - Comparison between `int *` and `int`
The rest of the expressions are true.
8.
8. Rewrite the following function to use pointer arithmetic...
```c
void store_zeros(int *a, int n) {
for (int i = 0; i < n; i++) {
*(a + i) = 0;
}
}
```