用户名或电子邮箱地址
密码
记住我
A、p+[(i*n+j)]*k B、p+[(i-1)*n+j-1]*k C、p+[(j-1)*n+i-1]*k D、p+[j*n+i-1]*k 喵查答案:p+[(i*n+j)]*k
char s[5]; s = "good"; cout<<s<<endl;
#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; }
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); }