vault backup: 2024-10-28 11:20:14
This commit is contained in:
parent
21dd78dedc
commit
77e7cdf760
@ -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;
|
||||
}
|
||||
}
|
||||
```
|
Loading…
Reference in New Issue
Block a user