Hi
This should work, only its dosent. would anyone be kind enough to gently point me in the right direction? It tells me that array is undeclared in "void judge" if thats worth anything. heres the code
Code:
#include <stdio.h>
#include <conio.h>
void judge(int Array[]);
void count(int Array[], int *total);
main()
{
int sum;
int array[5]={0};
printf("Points are being counted\n\n");
judge(array);
count(array, &sum);
printf("%d", sum);
getch();
}
void judge(int Array[])
{
int i;
for(i=1; i<5; i++){
printf("Give %d. judges points\n", i+1);
scanf("%d", &array[i]);
}
}
void count(int Array[], int *total)
{
for(i=1; i<5; i++){
&sum+=array[i];
}
}