摘要: 1 理解test.c, 说出程序功能 2 编译运行程序,提交运行截图 代码 #include <stdio.h> #include <stdlib.h> #include <fcntl.h> main() { int fd ; int newfd; char line[100]; fgets( li 阅读全文
posted @ 2021-12-13 11:49 修勾 阅读(239) 评论(0) 推荐(0) 编辑
摘要: ##任务详情 Ubuntu下支持哪些C语言的排序算法,查找算法?你是怎么得到的?提交截图 针对下面的数组,调用Linux的快速排序或二分查找算法。查找算法查自己的学号。 用随机数函数产生10个1-1000之间的数存到一个数组int arr[11]中, arr[10] = 你学号的后三位。 ##实践过 阅读全文
posted @ 2021-12-13 11:42 修勾 阅读(13) 评论(0) 推荐(0) 编辑
摘要: ##任务详情 -2147483647-1 == 2147483648U -2147483647-1 < -2147483647 -2147483647-1 < 2147483647 (unsigned)-2147483647-1 < 2147483647 上面四个表达式成立吗?为什么?并用C语言编程 阅读全文
posted @ 2021-12-13 10:20 修勾 阅读(65) 评论(0) 推荐(0) 编辑