Can't understand this code

Hi people, please help me I have this code which I need to convert it dlx machine code

1
2
3
4
5
6
7
8
9
10
11
char pegGet(char[] peg)
{
int i= 2;
while( peg[i]!=0 && peg[i]!=- ){
i++
}
i--;
char ch= peg[i];
peg[i]= -;
return ch;
} 

but I don't understand the bit it says

peg[i]= -;

can anyone explain please?
Last edited on
It is a syntax error. The code shall noot be compiled. Maybe the statement should be

peg[i] = '-';
Topic archived. No new replies allowed.