(int *)(p) // where p is an char pointer //
meaning of this
Collapse
X
-
Originally posted by yousuf(int *)(p) // where p is an char pointer //
This is on the left or right side of the expression?
If it is on right side then the pointer p is being type-casted
Raghuram -
Type casting refers to the dynamic process in which one data type is converted into another at the programmer's discretion. In this case, you are "forcing" p to become an integer pointer. This is usually applied when you want to use the data for a particular operation that requires a different data type...
Until again,
TomComment
Comment