Advertisement
Guest User

Untitled

a guest
Mar 8th, 2013
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.32 KB | None | 0 0
  1. #include <stdlib.h>
  2. #include <stdio.h>
  3.  
  4.  
  5. int main(void)
  6. {
  7.     unsigned int a[6] = {0,0,0,0,0,0};
  8.     void *aa = &a;
  9.     *(int *)(aa+4) = 123;
  10.     printf("%u %u %u %u %u %u", *(a), *(a+1), *(a+2), *(a+3), *(a+4), *(a+5));\
  11.     return 0;
  12. };
  13.  
  14. //testssp.cpp:9:17: warning: pointer of type ‘void *’ used in arithmetic
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement