Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .... terminated by signal SIGSEGV (Address boundary error
- 3
- Something Random
- #include<stdio.h>
- int *ptr() {
- int y;
- y = 3;
- return &y;
- }
- main() {
- int *stackAddr, content;
- stackAddr = ptr();
- content = *stackAddr;
- printf("%d", content);
- content = *stackAddr;
- printf("%d", content);
- }
Add Comment
Please, Sign In to add comment