Heres my current code:
const int SIZE = 100; //constant 100 const int COL = 30; //number of columns int testScores[SIZE]; //test score array char students[SIZE][COL]; //student names array int numTests; //the number of tests char *namePtr; //char pointer int *numPtr; //number pointer int count; //counter numPtr = testScores; //sets the pointer to testScores namePtr = students; //set the pointer to students
can pointers not be set to a char?
if that is the case should i just use an array?
I was told to use pointers whenever possible, i just don't know if a char pointer is possible.