给出下列程序的运行结果 void main( ){ int a=10; int *p1=&a; int *p2=p1; cout<
相似题目
-
下列程序的运行结果是( ) #include void fun(); int main() { int a=10; fun(); printf(%5d,a); return 0; } void fun() { int a=20; printf(%5d,a); }
-
下面程序运行的结果是( )。 void main() {char s[]=abcdefg
-
以下程序的运行结果是( )。void main( ){char *s=\xcb3abcd
-
有下列程序: #include void main( ) { int a[]={1,2,3,4},y,*p=&a[3]; --p; y=*p; printf(\y=%d\\n\,y); } 程序运行结果是( )。
-
下列程序的运行结果是( ) #include void fun ( int k ) ; void main ( ) { int w = 5 ; fun ( w ) ; } void fun ( int k ) { printf ( \%d\ , k ) ; if ( k>0 ) fun ( k-1 ) ; }
-
下列程序的运行结果为()。include<iostream.h>void main(){int a=2;int b=a+1;cout<<a/b<<endl;}
-
下面程序的运行结果为#include<iostream.h>void main( )char a='3';switch(
-
要求下面的程序运行后,显示如下结果: 2 10 4 6 1 5 2 3 2 4 7 8 5 1 3 2 下列程序执行后的输出结果是________。 include void main(); }
-
下列程序的运行结果为include<iostream.h>void main(){int a=2;int b=a+1;cout < < a/b < < endl;}
-
下列程序的运行结果为include < iostream.h >void main(){ int a=2; int b=a+l; cout < < a/b
-
Tilil程序的运行结果是()。 include<iostream.h> void main { int i=1: while(i<=8)
-
阅读以下程序,写出程序运行后的输出结果是 ______。include<iostream.h>void main(){char a[]={'
-
下面程序的运行结果为()。 include void main { char a=’3’: switch(8) { case 3:cout$amp;A.3
-
给出下面程序的运行结果。 include <stdio.h> int main(void) { static int x[] = {1,2,3}; int s = 1, i, *p = x; for (i=0; i<3; i++) { s*="*(p" + i); } printf("%d\n", s); return 0;>
-
下列程序的运行结果为include<iostream.h>Void main(){int a=2;iht b=a+1;cout <<a/b <<end1;}A
-
下列程序的运行结果为()。 include<iostream.h> void main { int a=2: int b=a+1: co
-
下列程序的运行结果为include<iostream.h>int i=0;class A{public: A(){i++;}};void main(){
-
下面程序段的运行结果是 include<iostream.h> void main() {char*s="abcde"; S+=2;
-
下列程序运行后的输出结果是_public class Foo{ public static void main(String[] args){ String s; System.out.println(“s=” + s); }}()
-
以下Java程序的运行结果是()。public class Increment{public static void main(String args[]
-
给出下面一段程序,选择运行结果() public class X{ public static void main(String[] args){ String names[] = new String[5]; for(int x=0; x<args.length; x++) names[x]=args[x]; System.out.println(names[2]); } } 命令行执行:java X 结果是下面哪一个?
-
以下程序若运行时输入ABC,则输出结果是______。 include include void main(); }
-
下列程序的运行结果是 【15】 。 import java.io.*; public class test public static void main(String arg) String s1="Hello!”; System.out.pnntln(s1.toUpperCase()); HELLO!
-
请阅读下列的程序,程序的运行结果是 public class Example01 { public static void main(String[] args) { int num = 127; byte b = num; System.out.println(b); } }