- linux下查看系统启动时间的命令
https://www.cnblogs.com/kerrycode/p/3759395.html
who -b
last reboot
top
w
uptime
cat proc/uptime
- 以下程序执行的结果:
char *foo() {
char x[512];
sprintf(x, "1,2,3,4,5,6,7,8,9,0");
return x + 6;
}
int main() {
printf("%s", foo());
return 0;
}
x为局部指针,函数返回时内存释放,但可正常运行.
https://www.nowcoder.com/discuss/681987?type=post&order=time&pos=&page=1&ncTraceId=&channel=-1&source_id=search_post_nctrack