写出程序段对应的输出结果 int x = 125; System.out.print(x%10);
下述程序段的输出结果是 ( ) int x=10; int y=x+ +; printf("%d,%d",(x+ +,y),y+ +);A.11,10,B.11,11C.10,10D.10,11
点击查看答案
下述程序段的输出结果是 ( ) int x=10; int y=x + +; 8printf("%d,'%d,(x+ +,y),y + +);A.11,10B.11,11C.10,10D.10,11
请选出以下程序段的输出结果 ( )。include using namespace std;define MIN(x,y)(x)请选出以下程序段的输出结果 ( )。 #include <iostream> using namespace std; #define MIN(x,y) (x)<(y) ?(x) : (y) int main () { int i,j,k; i=10; j=15; k=10*MIN(i,j); cout<<k<<end1; return 0; }A.15B.100C.10D.150
下列程序段的输出结果是 include void fun(int * X,int * y) {cout 下列程序段的输出结果是 #include<iostream.h> void fun(int * X,int * y) { cout < < * X < < * y; * X=3; * y=4; } void main( ) { int x=1,y=2; fun(&y,&x); cout < < X < < y < < end1; }A.2143B.1212C.1234D.2112
以下程序输出的结果是()。includeusing namespace std;int main(){int **x,*y,z=10;y=以下程序输出的结果是( )。 #include<iostream> using namespace std; int main() { int **x,*y,z=10; y=&z; x=&y; cout<< **x+1<<endl; return 0; }A.11B.x的地址C.y的地址D.运行错误
下面程序段的输出结果是:int a = 2;System.out.print( a++);System.out.print( a);System.out.print(++a);A.333B.334C.234D.233
设有如下类:class MyPoint {void myMethod() {int x, y;x = 5; y = 3;System.out.print( " ( " + x + ", " + y + " ) " );switchCoords( x, y );System.out.print( " ( " + x + ", " + y + " ) " );}void switchCoords( int x, int y ) {int temp;temp = x;x = y;y = temp;System.out.print( " ( " + x + ", " + y + " ) " );}}如果执行myMethod()方法,则输出结果为?A. (5, 3、(5, 3、(5, 3、B. (5, 3、(3, 5、(3, 5、C. (5, 3、(3, 5、(5, 3、