單項選擇題下列哪種默認(rèn)參數(shù)的聲明是不正確的()

A.int max(int a,int b,int c,int d=0);
B.int max(int a,int b,int c=0,int d=0);
C.int max(int a=0,int b,int c=0,int d=0);
D.int max(int a,int b=0,int c=0,int d=0);


您可能感興趣的試卷

你可能感興趣的試題

1.單項選擇題一個函數(shù)功能不太復(fù)雜,但要求頻繁使用,則該函數(shù)適合作為()

A.內(nèi)聯(lián)函數(shù)
B.重載函數(shù)
C.遞歸函數(shù)
D.嵌套函數(shù)

2.單項選擇題下列表達式,能將P聲明為常量指針的是()

A.const int * P;
B.int*const P;
C.const int * const P
D.int * P

5.單項選擇題下列運算符不能重載的是()

A.!
B.sizeof
C.new
D.delete