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

no error displays if varible re-difined

char xxxx;
char xxxx;//no error displays if varible re-difined
//keil c51 OK

Parents
  • char xxxx;
    char xxxx;//no error displays if varible re-difined
    

    An actual redefinition would be treated as an error, but the above isn't one.

    You want to get out your C textbook and read up on the difference between declarations and definitions. Pay special attention to the topic of "tentative definitions".

Reply
  • char xxxx;
    char xxxx;//no error displays if varible re-difined
    

    An actual redefinition would be treated as an error, but the above isn't one.

    You want to get out your C textbook and read up on the difference between declarations and definitions. Pay special attention to the topic of "tentative definitions".

Children
No data