#include <stdio.h>
int main()
{
int x = 10;
int y = 10;
int x = x * 2;
int y *= 2;
printf("x=%d\n", x);
printf("y=%d\n", y);
return 0;
}
在定义的同时不能用表达式赋值。
#include <stdio.h>
int main()
{
int x = 10;
int y = 10;
x = x * 2;
y*= 2;
printf("x=%d\n", x);
printf("y=%d\n", y);
return 0;
}