Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - N is an integer constant, and n=2, and (n-); pronef("%d ",n); The result after implementation is-1. Why?
N is an integer constant, and n=2, and (n-); pronef("%d ",n); The result after implementation is-1. Why?
N=2, and (n-);

printf("%d ",n);

The result after execution is-1.

This is because when n is 1, it is judged that the condition is met (N is 0 after judgment) and the loop is continued (empty statement is executed); When judging again, it is judged that the condition is not met (after judging, n is-1), so exit the loop and print-1.