编辑代码

#include <stdio.h>
#include <stdlib.h>
typedef struct test
{
    int num;
} ST;
int main () {
    //JSRUN引擎2.0,支持多达30种语言在线运行,全仿真在线交互输入输出。 
    ST *st1 = malloc(sizeof(ST));
    ST *st2 = malloc(sizeof(ST));
    ST *st3 = NULL;
    ST *st4 = NULL;
    printf("st1 p:%p\n", st1);
    printf("st2 p:%p\n", st2);

    if (st3 == st4)
    {
        printf("equal address!\n");
    }
    else
    {
        printf("address not equal!\n");
    }
    return 0;
}