You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// A local variable can't be used outside of a block, and here we need the adress of the local variable, so we need to create a pointer and allocate memory for its value
char * tab1 = malloc(sizeof(char) * N);
int i;
for (i = 0; i < N; i++) {
tab1[i] = c;
}
return tab1;
}
int main(void) {
char x;
char *t;
int j;
printf("Quel caractere met-on dans le tableau ?");