hello, i am using keil uvision 4.0 for my 8051 projects.i am getting an error whenever i use the pre defined word 'else' in my code. ex:
if(an1==1)
{
LED1=1;
LED2=1;
else //at this point//
LED1=0;
LED2=0; }
it shows an error C141. Can you please help me out..
The problem is not about the braces. I tried that out too!!..
So what _does_ your fixed code look like that still gives you that error?
Note: post properly intended and with the correct tags, as described in the posting tips.