Home > Back-end >  C language function calls refs
C language function calls refs

Time:01-28

In the process of learning C language, found the following problems,
Don't know why the first case a 0,
The first kind of circumstance is not call you, why a global variable value hasn't changed?

CodePudding user response:

Not didn't change, did not change, it's time to call printf C language function calls from right to left in the stack, call printf when put a the original value of the output, then call the alter, you again after the printf output at a time

CodePudding user response:

reference 1st floor flying_music response:
not didn't change, it's time to call printf haven't changed, the C language function calls from right to left in the stack, call printf when a original value output, first call the alter, you again after the printf output again changed

Oh oh, I understand the main ideas of the thank you brother
  • Related