Skip to content

Instantly share code, notes, and snippets.

@LibRaw
Created November 25, 2014 13:45
Show Gist options
  • Save LibRaw/c30b2ce462df6075abb4 to your computer and use it in GitHub Desktop.
Save LibRaw/c30b2ce462df6075abb4 to your computer and use it in GitHub Desktop.
int main(){
signed char p[] = {static_cast<signed char>(0x88), 0x88};
signed char *cp = p;
signed short q[] = {static_cast<signed short>(0x88), 0x88};
signed short *cq = q;
int g1 = *cp++, g2 = *cp++;
printf("%d %d\n",g1, g2);
g1 = *cq++; g2=*cq++;
printf("%d %d\n",g1, g2);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment