单项选择题

函数int test(int a,int b=1,int c:0),下列调用不合法的个数是( )。     test(0); test(0,0); test( ); test(0,0,0);

A.0
B.1
C.2
D.3
<上一题 目录 下一题>
热门 试题

单项选择题
下面程序的运行结果为( )。#include <iostream.h>void swap(int &a,int b){int temp;temp=a++;a=b;b=temp;}void main( ){int a=2,b=3;swap(a,b);cout<<a<< , <<B<<ENDL;}
A.x%=(k%=5)
B.x%=(k-k%5)
C.x%=k-k%5
D.(x%=k)-(k%=5)
单项选择题
对于下面的程序ifstreamfin(c: test.txt);if(fin)cout<< ok ;elsecout<< wrong ;对于if语句中的内容可以换为( )。
A. class
B. private
C. extends
D. public
相关试题
  • 下面程序的结果为( )。#include iostr...
  • 下列程序的输出结果是( )。#include i...
  • 下列程序的输出结果是( )。#include<i...
  • 在计算机中,算法是指( )。
  • 软件生命周期中花费时间最多的阶段是( )。