sync: 2026-11-09 17:25
This commit is contained in:
1 parent
945887d759
commit
26ac1271fb
1 file changed
+9
@@ -1006,5 +1006,14 @@ p = (int*) realloc(p,5*sizeof(int));
|
|||||||
### Exercice
|
### Exercice
|
||||||
|
|
||||||
```c
|
```c
|
||||||
|
char* func(unsigned int n) {
|
||||||
|
int i;
|
||||||
|
char* tab = malloc(n*sizeof(unsigned int));
|
||||||
|
for(i=0;i<n;i++) {
|
||||||
|
tab[i] = 'a';
|
||||||
|
}
|
||||||
|
return tab;
|
||||||
|
|
||||||
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Reference in new issue
Block a user