当先锋百科网

首页 1 2 3 4 5 6 7
#include <stdio.h>
#include <stdlib.h>
int main(){
    char *a[]={"saa","sdadsa"};
    //or char a[20][10]={"saa","sdadsa"};
    char **p=NULL;
    p=(char **)malloc(sizeof(char *)*);
    p[]=a[];
    p[]=a[];
    printf("%s\n",p[] );
    printf("%s\n",p[] );
    printf("(%d)\n",sizeof(char *) );
    printf("(%d)\n",sizeof(double *) );
    printf("(%d)\n",sizeof(int  *) );
    return ;
}