We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi, I observed a strange behaviour (for me only) of void pointer. I wrote a code to access an integer through void pointer as below:
void *ptr; int a[2] = {1,2};
ptr = (int *)&a; ptr++; // This is giving error: Unknown Size
Why the above increment statement is giving error as i already cast the pointer to int type ?
Can anybody help me in understanding this ?
Karthik K.
ANDY, that was a nice answer, applauds, is there a reason to learn C, and THEn apply to ucontrollers,
certainly there should be other ways,
is there a reason to learn C, and THEn apply to ucontrollers, certainly there should be other ways,
There are as many 'ways' as there are peaches in Gaffney, but "to learn C, and THEn apply to ucontrollers" is the best and - surprise - fastest.
Erik
You are htere absolutely Fastest, :)
Have you checked, http://www.keil.com/forum/docs/thread8679.asp