NgNN double x=17;int y;,当执行Y=(int)(x/5)%2;之后Y的值为【 】。

NgNN double x=17;int y;,当执行Y=(int)(x/5)%2;之后Y的值为【 】。


相关考题:

若有语句 double x=17;int y; ,当执行 y=(int)(x/5)%2; 之后 y 的值为 【 7 】 。

设x和y均为int型变量,且x=1,y=2,则表达式double(1+x/y)的值为【12】。

若X和n均是int型变量,且x=12,n=5,则执行y=x%=(n%_2)表达式后Y的值为________ 。

设x和y均为int型变量,则执行下面的循环后,y值为()。include void main(){int x, y;f 设x和y均为int型变量,则执行下面的循环后,y值为( )。#include <iostream.h>void main(){int x, y;for(y= 1,x= 1 ;y<=50;y++){ if(x>=10) }break;if (x%2==1){ x+=5; continue;} x-=3;} cout<<y;A.2B.4C.6D.8

设x和y均为int型变量,则执行下面的循环后,y的值为 。 for (y=1,x=1;y<=5;y++) { if (x>=10) break; if (x%2==1) { x+=5; continue; } x-=3; }A.2B.4C.6D.8

如执行语句以下语句之后,x的值为()。int a[5]={1,2,3},x=a[2];int *y=x; y++;A.3B.4C.5D.6

17、执行下列语句:int x = 5, y; y = x / 2; 执行后变量y的数据类型和值分别为()。A.int, 2.5B.int, 2C.double, 2.0D.double, 2.5

18、执行下列语句:int x = 5; double y; y = x / 2; 执行后变量y的数据类型和值分别为()。A.int, 2.5B.int, 2C.double, 2.0D.double, 2.5

【填空题】若有语句double x=17;int y;,当执行y=(int)(x/5)%2;之后y的值为