皮皮学,免费搜题
登录
logo - 刷刷题
搜题
【多选题】
代码如下。关于这段代码,说法正确的是 char *p = (char *) malloc(sizeof(char)*100); strcpy(p, “hello”); free(p); ⋯ if (NULL != p) { strcpy(p, “world”); }
A.
执行第二个strcpy函数时会报错
B.
free函数执行以后,指针p指向的地址不会发生变化
C.
free函数执行以后,指针p指向的内存会释放
D.
为了避免出错,free函数执行以后,需要在if语句前加一句p=NULL;
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【单选题】Please analyze the logical fallacy in the following statement: Teachers in capitalist countries are out for all the money they can get.
A.
A d M isericordiam
B.
D icto S impliciter
C.
Hasty Generalization
D.
P ost H oc
【判断题】三餐的能量分配应保持合理比例,早餐占30%,午餐占30%、晚餐占40%。
A.
正确
B.
错误
【简答题】设一个关系A具有a1个属性和a2个元组,关系B具有b1个属性和b2个元组,则关系A×B具有________个元组。
【单选题】Please analyze the logical fallacy in the following statement: In the last month, fourteen students have been arrested in California for using drug. That state is obviously filled with young addicts.
A.
A d M isericordiam
B.
D icto S impliciter
C.
Hasty Generalization
D.
Hypothesis Contrary to Fact
【简答题】两构件接触形成运动副,接触处可通过( )、( )、( )形式接触。
【判断题】三餐的能量分配应保持合理比例,早餐占30%,午餐占40%、晚餐占30%。
A.
正确
B.
错误
【单选题】Please analyze the logical fallacy in the following statement: Religion obviously weakens the political strength of country. After all, Rome fell after the introduction of Christianity.
A.
A d M isericordiam
B.
D icto S impliciter
C.
Hasty Generalization
D.
P ost H oc
【单选题】Please analyze the logical fallacy in the following statement: Watching television is a waste of time.
A.
A d M isericordiam
B.
D icto S impliciter
C.
Hasty Generalization
D.
P ost Hoc
【单选题】張さんはなにを飲みたいですか。 コーヒー_____します。
A.
B.
C.
D.
【单选题】一天三餐总能量比较合理的分配比例是:早、中、晚餐各占( )。
A.
5%-10%、25%、70%
B.
10%、20%、70%
C.
15%、30%、55%
D.
25%-30%、40%、30%-35%
相关题目:
参考解析:
知识点:
题目纠错 0
发布
创建自己的小题库 - 刷刷题