题目内容

#include int k=5; void f(int *s) { *s=5; s=&k; } main() { int m=3,*p=&m; f(p); printf("%d,%d\n", m, *p); } 以上程序的运行结果是_______?(注意结果标点使用英文标点)

查看答案
更多问题

int k=5; void f(int *s) { s=&k; } main() { int m=3,*p=&m; f(p); printf("%d,%d\n", m, *p); } 以上程序的运行结果是_______?(注意结果标点使用英文标点)

#include typedef struct {int b,p;} A; void f(A c){ int j; c.b+=1;c.p+=2; } main(){ int i; A a={1,2}; f(a); printf("%d,%d\n",a.b,a.p); } 程序运行后的输出结果是_______?(注意结果标点使用英文标点)

#include struct ord { int x,y;}dt[2]={1,2,3,4}; main() { struct ord *p=dt; printf("%d,",++(*p.x)); printf("%d\n",++(p->y)); } 程序运行后的输出结果是_______?(注意结果标点使用英文标点)

《中华人民共和国海上交通安全法》规定,海上事故现场的船舶发现有人遇难时,在什么情况下应当尽力救助遇难人员?

A. 任何情况下
B. 不严重危及自身安全
C. 对方请求
D. 船东指示

答案查题题库