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

#define COUNT 2000

can any one give me the meaning of following line

#define COUNT  2000
#define KEY2    0x2F
#define KEY1    0xF8

COUNT,KEY2,KEY1 are the name's given which we going to use next in the prog. but what is 2000,0x2F,0xF8 is address i.e memory location or simply just value.

Parents
  • " #define " is a control directive.It is the C equivalent to assembly directive " equ ".
    What it does is somthing like this :
    During PRE-PROCESSING, the Cross compiler passes the program file.Then the ' #define X Y' would represent every X in the program body with Y. As simple as this.....
    Debasish

Reply
  • " #define " is a control directive.It is the C equivalent to assembly directive " equ ".
    What it does is somthing like this :
    During PRE-PROCESSING, the Cross compiler passes the program file.Then the ' #define X Y' would represent every X in the program body with Y. As simple as this.....
    Debasish

Children
No data