问题
填空题
以下程序的执行结果是______。
#include<iostream.h>
void main()
int x=5 y=2;
cout<<! (y==x/2)<<",";
cout<<(y!=x%3)<<",";
cout<<(x>0 && y<0=<<",";
cout<<(x!=y||x>=y)<<endl;
答案
参考答案:0,0,0,1
以下程序的执行结果是______。
#include<iostream.h>
void main()
int x=5 y=2;
cout<<! (y==x/2)<<",";
cout<<(y!=x%3)<<",";
cout<<(x>0 && y<0=<<",";
cout<<(x!=y||x>=y)<<endl;
参考答案:0,0,0,1