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

Textbook vs CARM

Well,
my C-Textbook says

    for (unsigned int i = 50;i;i--) blink(123);


CARM don't like it.
What's the reason?

Parents
  • What's the reason?

    Including variable definitions in the for statement was not part of the original C specifications. It is allowed in C++, and in newer C standards.

    Also: Why are you using CARM ? It's an obsolete, discontinued product. Use the Realview compiler instead.

Reply
  • What's the reason?

    Including variable definitions in the for statement was not part of the original C specifications. It is allowed in C++, and in newer C standards.

    Also: Why are you using CARM ? It's an obsolete, discontinued product. Use the Realview compiler instead.

Children