更多"下面程序的运行结果是 #include<iostream.h> v"的相关试题:
[单项选择]下面程序运行后的输出结果是 () 。#include #include void main( ){ char a[7] = "china"; int i, j; i = sizeof(a); j = strlen(a); printf("%d, %d/n", i, j);}
A. 5, 5
B. 6, 6
C. 7, 5
D. 7, 6
[单项选择]下面程序的运行结果是
#include<iostream.h>
void main( 0
int num =1;
int &ref = num;
ref=ref+2;
cout << num;
num = num+3;
cout < < ref < < end1;
A. 13
B. 16
C. 36
D. 33
[单项选择]下面程序的运行结果是
#include<iostream.h>
Void main( )
{
int num=1;
int &ref=num;
ref=ref+2;
cout < < num;
num=num+3;
cout < < ref < <endl;
}
A) 13 B) 16 C) 36 D) 33
[单项选择]下面程序的运行结果为
#include
void main( )
char a=,'3';
switch(
[单项选择]下面程序的运行结果是 #include<iostream.h> void main( ) { int i=1; while(i<=8) if ( ++i%3!=2)continue; else cout<<i; }
A. 25
B. 36
C. 258
D. 369
[单项选择]下面程序段的运行结果是
#include<iostream.h>
void main( )
char*s="abcde";
S+=2;
cout<<&s;