Pointer in C

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Saira123
    New Member
    • Mar 2008
    • 1

    Pointer in C

    Can somebody explain what the * mean after BYTE.. ( p = (BYTE*) &dataout [0];) this part make me confuse

    Code:

    Code:
    void function ();
    
    {
    BYTE *p
    WORD i
    
       ReadData ();
       
       p = (BYTE*) &dataout [0];
       
       for (i = 0; i <4096; i++)
         {
             *p++ = inputA
         }
    
    }
    Thank you
    Last edited by Ganon11; Mar 7 '08, 03:02 PM. Reason: Please use the [CODE] tags provided.
  • satch
    New Member
    • Feb 2008
    • 23

    #2
    Originally posted by Saira123
    Can somebody explain what the * mean after BYTE.. ( p = (BYTE*) &dataout [0];) this part make me confuse

    Code:
    Code:
    void function ();
    
    {
    BYTE *p
    WORD i
    
       ReadData ();
       
       p = (BYTE*) &dataout [0];
       
       for (i = 0; i <4096; i++)
         {
             *p++ = inputA
         }
    
    }
    Thank you
    The * tells that you are typecasting a pointer.

    Comment

    Working...