填空题

定义字符指针char *str="hello",已知sizeof(str)=4,则strlen(str)=______。

【参考答案】

E
<上一题 目录 下一题>
热门 试题

填空题
执行下列程序后的输出结果是______。#include<iostream>using namespace std;int main(){int x=3;int &y=x;y++;cout<<x<<end1;return 0;}
填空题
有如下程序: #include<iostream> using namespace std; class Base { public: Base (){cout<< Base ;} }; class Derived:public Base { public: Derived(){cout<< Derived ;} }; intmain() { Derived derived; Base *p; P=& derived; return 0; } 执行上面程序的输出是______。
相关试题
  • 已知递归函数fun的定义如下: int fun(i...