so im working on a mid-term exam average program of a class of 10 students. would my code start as follows?
void getnames(char stuname[10][20])
{
int ctr;
for(ctr1=0;ctr1<10;ctr1++)
{
printf("Enter Name %d ", ctr);
scanf("%s",stuname[ctr]);
}
void printnames(char stuname[10][20])
{
int ctr2;
for(ctr2=0;ctr2<10;ctr2++)
{
printf("%s\n", stuname[ctr2]);
}
and have getNAME as a global function?
Hope my question makes sense. Im still in the pseudocode phase