Posts by kappa • 1 point
1 post
-
-1
votes1
answer21
viewsQ: What is the error in my pointer passing to the read_vector() function?
void read_vetor(int *vet, int n) { for (int i=0;i<n;i++) { scanf_s(" %d", *(vet+i)); } } void write_vetor(int* vet, int n) { for (int i=0;i<n;i++) { printf("%d", *(vet+i)); } } void main() {…