已知a=1,b=2,c=3;则表达式: !(a>b)&&!c||1的值为_____。
查看答案
以下程序的运行结果是______。#include using namespace std;int main( ){ int p,a=5; if (p=a!=0)cout << p << endl; else cout << p+2 << endl; return 0;}
以下程序的输出结果是______。#include using namespace std;int main( ){int s,i; for ( s=0,i=1; i<4; i++,s+=i ); cout << s << endl; return 0;}
运行如下程序,结果为_____。#include using namespace std;int main( ){int t=1,i=5; for ( ; i>=0; i-- ) t *= i; cout << t << endl; return 0;}
运行如下程序,结果为_____。#include using namespace std;int main( ){int x =10; do { cout << --x ; }while( !x ); return 0;}