i am facing error C141: syntax error near '}'
my program is given below:
#include<reg51.h> void main ( ) { int x; while (1) { P1 = 0x00 ; for (x=0 ; x<=5000 ; x++) P1 = 0xFF ; for (x=0 ; x<=5000 ; x++) } }
any one can help me how to solve it
#include<reg51.h> void main ( ) { int x; while (1) { P1 = 0x00 ; for (x=0 ; x<=5000 ; x++) { P1 = 0xFF ; }
} }
suresh, suresh, suresh. suresh, suresh, suresh.
Did you read the posts above? What was the main complaint about you original post? did you actually fix the problem?
Not same name as OP.
And a program that (most probably) have the same problem with the first for() loop. And solved the problem with the second for() loop by removing it.