这俩个变量哪个规范些,有必要做到例2的格式吗
例1: #include <stdio.h> void main()
{
int a, b, c, d;
unsigned u;
a = 10;
b = -54;
u = 24;
c = a + b;
d = b + u;
printf("a+b=%d, b+u=%d\n", c, d);
}
例2:
#include <stdio.h>
int main()
{
int a, b, c, d;
unsigned u;
a = 10;
b = -54;
u = 24;
c = a + b;
d = b + u;
printf("a+b=%d, b+u=%d\n", c, d);
return 0;
}