Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - C language: what do you mean?
C language: what do you mean?
# contains "stdio.h"

void main()

{

int a= 10,x=5,y = 6; /* Define an integer variable and assign an initial value of a= 10, x=5, y=6*/

a+= a * = 6; /*a=a+(a=a*6) assignment operator, operating from right to left, that is, calculate a*=6 first, that is, a = a * 6 =10 * 6 = 60; Then calculate a+=a, that is, a=a+a=60+60= 120*/

x = y++; /*y++ was added first, so x=y++=6, but it was added once and became 7*/

y = ++ x; /*++x is the value added with X first, so y=++x=7 (X = y++;+in the previous step; Then it becomes 6, and the self-increasing 1 is 7)x and ++x are also 7*/

a =(x++)+y; /* Like y++, x++ is used first and then added, so a=(x++)+y=7+7= 14, and then X is increased to 8*/

printf("%d,%d,%d ",a,x,y); /* output the values of a, x and y, and the format should be:14,8,7 */

}