现在的位置: 首页 > 综合 > 正文

time函数获取秒数。long int short大小区分

2013年08月07日 ⁄ 综合 ⁄ 共 195字 ⁄ 字号 评论关闭

#include<stdio.h>

#include<time.h>

void main()

{

    long t;

    int i;

    short e;

    e=i=t=time(NULL);

    printf("time的返回值long是:%ld/n",t);

    printf("time的返回值int是:%d/n",i);

    printf("time的返回值short是:%d/n",e);

}

抱歉!评论已关闭.