The following program is not called in the main function, but why is it restarted?
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/82/8E/wKioL1daVgazWPmpAABYRcJhb-s690.png "title=" 1.PNG " alt= "Wkiol1davgazwpmpaabyrcjhb-s690.png"/>
In the main function, the FUN1 function is called, and in the FUN1 function, after p--, the contents of the P address on the stack frame are modified into fun
The address, so the program runs into the fun function.
2. Modify the contents of the variable on the stack frame (not through the variable name)
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/82/8E/wKioL1daYLWRa5AuAAAzSw4e0N4630.png "style=" float: none; "title=" 4.PNG "alt=" Wkiol1daylwra5auaaazsw4e0n4630.png "/>
Test results:
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/82/90/wKiom1daX6ih6SYfAAAPM4JhnsI790.png "title=" 2.PNG " Style= "Float:none;" alt= "Wkiom1dax6ih6syfaaapm4jhnsi790.png"/>
In the fun function, B presses the stack, a pushes the stack, and the variable B is above the variable A.
This article is from the "go to see the Stars" blog, please be sure to keep this source http://10810429.blog.51cto.com/10800429/1787768
Program analysis (stack frame problem)