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

Problems with binary operator

My keil version 4.0a
Quick example:

#include<lpc23xx.h>
#include <math.h>

#define RS 0x10000000;
#define E 0x80000000;

int main(void) {
IODIR1 = RS + E ;}

Why it doesn't work, it should right? How write it properly? I was trying everything and I have no idea how make it working. Thank you for help.

Parents
  • "Why it doesn't work"

    You have presented no evidence to suggest that it doesn't!

    What does it do?
    Why don't you think that constitutes "working"?

    "it should right?"

    It will work in accordance with the ANSI 'C' standard - have you checked carefully what that says should happen?

    "How write it properly?"

    That depends on what you mean by "properly"!
    How about explaining what you want it to do??

Reply
  • "Why it doesn't work"

    You have presented no evidence to suggest that it doesn't!

    What does it do?
    Why don't you think that constitutes "working"?

    "it should right?"

    It will work in accordance with the ANSI 'C' standard - have you checked carefully what that says should happen?

    "How write it properly?"

    That depends on what you mean by "properly"!
    How about explaining what you want it to do??

Children
No data