问题
单项选择题
以下程序的结果是( )。#include<iostream.h>void main(){char*p="abcdefgh",*r;long*q;q=(1ong*)P;q++;r=(char*)q;cout<<r<<endl;=
A.defg
B.cdef
C.ghab
D.efgh
答案
参考答案:D
以下程序的结果是( )。#include<iostream.h>void main(){char*p="abcdefgh",*r;long*q;q=(1ong*)P;q++;r=(char*)q;cout<<r<<endl;=
A.defg
B.cdef
C.ghab
D.efgh
参考答案:D