则执行下面语句后的w值是
void main()
{
int a=1,b=2,c=3,d=4,w;
w=(a<b)?a:b;
w=(w<c)?w:c;
w=(w<d)?w:d;
cout<<w<<endl;
}
1
2
3
4
发表评论