编辑代码

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

typedef struct mds_sm{
    int *a;
}mds_t;
int main () {
    //JSRUN引擎2.0,支持多达30种语言在线运行,全仿真在线交互输入输出。 
    int *a = NULL;
    mds_t stA;
    a = (int *)malloc(sizeof(int));
    memset(a,0,sizeof(a));
    memset(&stA,0,sizeof(stA));
    
    stA.a = a;

    printf("%p  %p",&a,&stA.a);
    return 0;
}