pointers question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • axr0284

    pointers question

    Hi,
    I would like to know what this code line does in this function
    Code:
    void FlashDrvWriteByte(int iAddr, int iByte)
    {
    *(int*)iAddr = (iByte & 0xFF);
    
    }
    I am not sure if this group uses code tags so bear with me here.
    I would like a description of what " *(int*)iAddr " means. I think
    it's casting the int to a "pointer to an int" and then it's assigning
    the memory location the pointer points to with the value of (iByte &
    0xFF). Am I correct here? Thanks
    Amish

Working...