题目内容

以下程序的运行结果是______ #include using namespace std;int check (int n){ int log=0; do { log=(n%10==2)||(n%10==4) ||(n%10==6); n/=10; } while (n!=0&&!log); return log;}int main ( ){ cout<

查看答案
更多问题

下列if语句中,不正确的是()。

A. if(x>y) else cin>>y;
B. if(x

下列if语句中,不正确的是()。

A. if(x>y;
B. if(x
C. if(x==y) x+=y;
D. if(x

有如下程序段: char str[14]={"I am "};strcat(str, "sad !");cin>>str; cout<

A. I am sad!
B. happy!
C. I am happy!
D. happy!ad!

以下程序的输出结果是( )()。 #include #include int main( ) { char st[20]="hello\0\t\\"; printf("%d %d \n",strlen(),sizeof()); }

A. 9 9
B. 5 20
C. 13 20
D. 20 20

答案查题题库