[Solved] Iterate through array in c manually [closed]


I’m not sure what you want, nor what your actual problem is, but this works fine here:

#include <stdio.h>
#include <conio.h>

int main() {

    char name[10][10];
    int i;

    for (i = 0; i<10; i++) {

      printf("Enter a name : ");
      scanf("%s", name[i]);
    }

  for (i = 0; i<10; i++) {

    printf(" Name %d: %s", i, name[i]);
    getch();
  }    
}

1

solved Iterate through array in c manually [closed]