用户名或电子邮箱地址
密码
记住我
#include using namespace std; void f(int x[]. Int n) { if(n > 1) { f(&x[1],n-1); cout << x[0]; } else cout << x[0]; } int main() { int z[6]={1,2,3,4,5,6}; f(z,6); cout<<”\n”; return 0; }
喵查答案:654321
#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); }