Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct abc {
- int *B;
- }
- int main() {
- int D = 3;
- int *C;
- struct abc* A = (struct abc*)malloc(sizeof(struct abc));
- A-> = (int*)malloc(sizeof(int));
- *(A->B) = 67;
- C = &(A->B);
- *C = &D;
- /* I know i could do A->B = &D, but... */
- A->B == 3 ??? Will it be?
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement