题目内容
(请给出正确答案)
[单选题]
下列求最大值函数代码正确的是()。
A.max(a,b) { int c; if(a>b) c=a; else c=b; return c; }
B.max(int a,int b) { int c; if(a>b) c=a; else c=b; return c; }
C.void max(int a,int b) { int c; if(a>b) c=a; else c=b; return c; }
D.int max(int a,int b) { int c; if(a>b) c=a; else c=b; return c; }
答案
查看答案