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
You missed the point entirely!
The point is that the inability to follow simple, clearly-stated instructions is symptomatic of a fundamental problem in the OP's approach.
No. I was replying to your rather sloppy description of what matters to a compiler.