Casting

Go4Expert Member
21Mar2008,12:51   #1
boschow's Avatar
Hello,

I am programing in C and i have an array of chars a[20], and I have an int b. I am triing to copy the fourth element of the array a[3] into the int b. I wrote something like this:

Code:
a= (int*)&prcsData->appData[3];
But the rezult isn't what i was expecting. Can you please have a look and tell me what i am doing wrong ?

Best Regards,
BoSCHoW.