This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

TOGGLE.C(10): error C141: syntax error near '}'

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

Parents
  • whether it's read as laziness regardless or if there's any consideration that a person could simply have made a mistake. It's a very, very specific, direct question. It's not difficult to answer. Answer it if you want or ignore it.

    I really would not think of it as 'laziness' but more like "lack of interest in doing right". In todays society there is waaaaay too much of "if I do not do what I'm supposed to, so what, it is not politically correct to berate me"

    Erik

Reply
  • whether it's read as laziness regardless or if there's any consideration that a person could simply have made a mistake. It's a very, very specific, direct question. It's not difficult to answer. Answer it if you want or ignore it.

    I really would not think of it as 'laziness' but more like "lack of interest in doing right". In todays society there is waaaaay too much of "if I do not do what I'm supposed to, so what, it is not politically correct to berate me"

    Erik

Children