0

error: expected expression before | token

Hello I have this problem I dont undertad Help!! inimemcom.c:6:52: error: expected expression before | token if((*shmid1=shmget(clavemem1,sizeof(datos),PERM|BANDERAS))==-1) ^ inimemcom.c:15:52: error: expected expression before | token if((*shmid2=shmget(clavemem2,sizeof(datos),PERM|BANDERAS|))==-1)

15th Oct 2021, 1:27 AM
Young Money
Young Money - avatar
2 Réponses
0
code?
15th Oct 2021, 2:11 AM
Slick
Slick - avatar
0
I think the issue is in your if conditions you using single equal to operator u need to use == and instead of single | use double ||
15th Oct 2021, 12:17 PM
A S Raghuvanshi
A S Raghuvanshi - avatar