[PIC] please help me from correcting this error that i am facing in mikroC image attached

Status
Not open for further replies.
You cannot have a empty while() loop. You need a condition for it to run like if you want the loop to run always then you have to use
Code:
while(1)

If you want to the loop to run based on some condition then you have to put the condition like

Code:
while(condition == true) {

}

eg:

Code:
while(i < 5) {

}
 

Re: plz help to rectify the error

you have an incomplete while(1) statement in line 61
it needs some condition, e.g.
Code:
  while(condition)
     {}
while condition is true (non zero) the statements {} will be executed
the while() terminates when condition is false
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…