im compiling a basic sorting algorithm that utilizies POSIX threads (pthreads) ....
everything was compiling fine, until i put the thread implementation in ....
all of a sudden, it gives me this:
-bash-2.05b$ gcc project4a.c -lpthreads
project4a.c: In function `main':
project4a.c:32: subscripted value is neither array nor pointer
project4a.c:33: subscripted value is neither array nor pointer
in regards to these lines:
32: n[x] = atoi(readnum);
33: printf("%i ", n[x]);
it is declared correctly, like this:
const int MAX = 1024;
int n[51];
int tot_n;
void *numsort (void *arg);
int main()
{
char readnum[MAX];
.
.
.
what error is that???? anyone?