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
  • What was wrong with my response?
    That you raised an insignificat issue after the OP had his question answered

    He has three posts nitpicking about how people should post
    sure, since you raised the issue
    while adding nothing to what is actually wrong with the original code
    sure, that was answered in the first post, then after your 'response' it became about your nitpick
    and I'm the ass?
    you said it

    Erik

Reply
  • What was wrong with my response?
    That you raised an insignificat issue after the OP had his question answered

    He has three posts nitpicking about how people should post
    sure, since you raised the issue
    while adding nothing to what is actually wrong with the original code
    sure, that was answered in the first post, then after your 'response' it became about your nitpick
    and I'm the ass?
    you said it

    Erik

Children
No data