• void pointer
    Hi, Any idea what does following do and how ? ((void (code *) (void)) 0) (); Any help would be great
  • Advice on Pointer arithmetic please?
    Could anyone enlighten me on pointer arithmetic please? Assigning a constant is fine, but a warning is generated when using a variable. (The code does do what I expect though.) The warning is :...
  • Can someone check this code for me?
    Hello , every body: Hope you could give me some suggestion. I use this module to arrange my functions in a period of time, that says, when the times up, the specified routine will execute. I put the...
  • void pointer to struct pointer cast
    I declared a void pointer void *ptr; and a typedef struct named testStructure, with a member 'unsigned int a'. Now I will cast this pointer to a struct pointer: ptr=(testStructure*)malloc...
  • void pointer behaviour ?
    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++; /...