(void*)(&abc) and (void *)(abc)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • askcq
    New Member
    • Mar 2007
    • 63

    (void*)(&abc) and (void *)(abc)

    what is the difference between these
    (void*)(&abc) and (void *)(abc)


    where abc is a local varaible inside a function
  • svlsr2000
    Recognized Expert New Member
    • Feb 2007
    • 181

    #2
    Originally posted by askcq
    what is the difference between these
    (void*)(&abc) and (void *)(abc)


    where abc is a local varaible inside a function
    if abc is integer
    in (void *)(&abc), you are trying to cast integer pointer to void *
    in (void *)(abc), you are trying to cast integer to void *

    Comment

    Working...