下面程序的输出结果为______ include void main() {cout下面程序的输出结果为______include<iostream.h>void main(){cout<<"Hello\b";}

题目
下面程序的输出结果为______ include void main() {cout<<"Hello\b"; }

下面程序的输出结果为______

include<iostream.h>

void main()

{

cout<<"Hello\b";

}


相似考题
更多“下面程序的输出结果为______ include<iostream.h> void main() {cout<<"Hello\b"; } ”相关问题
  • 第1题:

    下列程序的输出结果为 include void main( ) { char * a[ ] ={"hello},"the"," wo

    下列程序的输出结果为

    #include<iostream.h>

    void main( )

    {

    char * a[ ] ={"hello},"the"," world"};

    char * * pa=a;

    pa++;

    cout < < * pa < < endl;

    }

    A.hello

    B.the

    C.world

    D.hellotheworld


    正确答案:B
    解析:本题主要考查的是指针数组和指向指针的指针之间的关系,其中a是指针数组,pa是指向指针数组行的指针,所以pa自加1相当于指向下一行。

  • 第2题:

    下列程序的输出结果为includevoid main(){char*a[]={"hello","the","world"};char*

    下列程序的输出结果为 #include<iostream.h> void main() { char*a[]={"hello","the","world"}; char**pa=a; pa++; cout<<*pa<<end1; }

    A.hello

    B.the

    C.world

    D.hello the world


    正确答案:A
    解析:本题考查的是字符数组的初始化,选项B)中用3个元素初始化大小为2的数组,越界了;选项C)中应该是2行3列的数组,题中使用3行2列初始化;选项D)中数组合后应用方括号。

  • 第3题:

    下列程序的执行结果为______。include void main() { cout.fill(‘*’); tout.width(10

    下列程序的执行结果为______。

    include<iostream.h>

    void main()

    {

    cout.fill(‘*’);

    tout.width(10);

    cout<<“hello”<<endl;

    )


    正确答案:* * * * *hello。
    * * * * *hello。 解析: 本题考查的是C++语言的流输出操作,eout中包括的函数fill()和width()分别实现填充和设定显示长度的功能。

  • 第4题:

    下列程序的输出结果为includevoid main( ){char * a[ ]={"hello","the","world"};c

    下列程序的输出结果为 #include<iostream.h> void main( ) { char * a[ ]={"hello","the","world"}; char * * pa=a; pa++; cout <<*pa<<end1; }

    A.hello

    B.the

    C.world

    D.hellotheworld


    正确答案:B
    解析:本题主要考查的是指针数组和指向指针的指针之间的关系,其中a是指针数组,pa是指向指针数组行的指针,所以pa自加1相当于指向下一行。

  • 第5题:

    下列程序的输出结果为()。includeincludevoidmain(){cout.precision(4)

    下列程序的输出结果为( )。 #include<iostream.h> #include<iomanip.h> voidmain() { cout.precision(4); cout<<123.127; cout<<””<<123.46: }

    A.123.1 123.4

    B.123.1 123.46

    C.123.127 123.46

    D.123.1123.4


    正确答案:A