用户名或电子邮箱地址
密码
记住我
char a[10] = { "abc de fg" }; char* p = &a[3]; cout << p;
A、“ de fg” B、“de fg” C、
“ de” D、“de” 喵查答案:“ de fg”
int a[6] = { 1,2,3,4,5,6 }; int* p = a; cout << *p++ ; cout << *(p++); cout << *(++p); cout << *++p;
#include using namespace std; int Size(char*a){ return sizeof(a); } int main() { char a[10],b[10]; cout<<sizeof(a)<<' '<<Size(b)<<endl; return 0; }
char s[5]; s = "good"; cout<<s<<endl;
int *a = new int[10]; cout<<sizeof(a)<<’ ’<<sizeof(new int [8])<<endl;
struct node{ int x,y; struct node *p; } L[2]; main(){ L[0].x=1; L[0].y=2; L[1].x=3; L[1].y=4; L[0].p=&L[1];L[1].p=L; printf("%d%d\n",(L[0].p)->x,(L[1].p)->y); }