首页 > 试题广场 >

下面程序的输出结果为()?#include...

[单选题]
下面程序的输出结果为(      )?
#include <iostream>
using namespace std;

int main ( )
{
    char str[] = {"hello"}, *p;

    p = (char*)new char(10);
    *p = str; 
    cout<<*p<<endl;

    return 0;
}
  • hello
  • h
  • 编译错误
  • 其他几项都不对

这道题你会答吗?花几分钟告诉大家答案吧!