#include <stdio.h>
#include <stdlib.h>
int main() {
int n, i;
scanf("%d", &n);
char* v = malloc(n * sizeof(char));
for(i = 0; i < n; i++){
scanf(" %c", &v[i]);
}
for(i = 0; i < n; i++){
printf("entrada: %d, conteudo: %c , endereco: %p\n", i, v[i], &v[i]);
}
free(v);
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: