I am writing a C program in which I am using an array of pipe for IPC.I am getting error "subscripted value is neither array nor pointer".Can any one tell me where did I do mistake?
here is the code where I get error:
int p[100][2];
//in for loop
pipe(p[i-1]);
//in child process
close(p[i-1][0]);
write(p[i-1][1], out, sizeof(NODE));
//in parent process
close(p[j][1]);
ead(p[j][0], tmp, sizeof(NODE));
pis shadowed. - Daniel Trebbien