填空题 若有如下程序段:
#include<iostream>
using namespace std;
int main()

char *p="abcdefgh",*r;
long *q;
q=(long*)p;q++;
r=(char*)q;
cout<<r<<endl;
return 0;

该程序的输出结果是 【10】

  • 1、
【正确答案】 1、efgh    
【答案解析】