warning: format '%d' expects argument of type ' int', but argument 2 has type 'int *' [-Wformat=] printf("%u",p1->j); : How to remove the warning?
Here's the code, everything works fine except for the warning.


    void main()
    {
    struct s1
    {
        int *j;
    };

    struct s2
    {
        int k;
    };
    struct s1 *p1;
    struct s2 *p2;
 
    p1=malloc(sizeof(struct s1));
    p2=malloc(sizeof(struct s2));
    p2->k=5;
    p1->j=&p2->k;
    printf("%d",p1->j);
    }