一年有多少秒
程序员文章站
2022-03-15 21:35:01
...
#include<stdio.h>
#define SECONDS_PER_YEAR (60 * 60 * 24 * 365)
int main(void)
{/*
int x = 5;
int *p = &x;
int (*n)[sizeof(char)];
printf("%d\n",SECONDS_PER_YEAR);
printf("%d\n",sizeof(int));
printf("%d\n",sizeof(p));
printf("%d\n",sizeof(n));
printf ("%d, %c", 'b', 'b'+1 ) ; */
int k,x;
for (k=0, x=0; k<=9&&x!=10; k++)
x+=2;
printf ("%d, %d", k, x) ;
return 0;
}