Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int someArray[5] = {1,2,3,4,5};
- typedef int** ppInt;
- ppInt test = (ppInt)&someArray;
- int main(int argc, char **argv){
- int i;
- for(i=0; i<5; i++) printf("%d ", test[i]); // Returns "1 2 3 4 5 "
- putchar('\n');
- system("pause");
- }
Advertisement
Add Comment
Please, Sign In to add comment