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