junglemanchild
2013-01-17 09:07:16 UTC
for(i=0; i=128; i++)
{
if(line[i] == 0)
{
LHS++;
}
else if(line[i] == 1)
{
return;
}
return;
}
The information I have been given is that the "array line is a 128 char array and LHS is an unsigned char".
The book asks me to list all the problems that I find in the code (except sloppy presentation). Unfortunately there are no answers and I'm curious as to how many problems the code has to see if I am not picking up on something. I would appreciate it if someone who is not as amateur in C programming as me could tell me what is wrong with it. Thanks !!