#include <stdio.h>

struct One{
    int a;
    int b;
} s2,s1,*sp1;

int e;
int ff;

struct Two{
    int c, d;
} q,r,t, s4,s3;

struct Three
{
    struct One one;
    struct Two two;
};

void func1(struct One *arg1)
{
    struct Three *lptr = (struct Three *)arg1;
    printf("%d\t", lptr->one.a);
    printf("%d\t", lptr->two.c);
}

int main()
{
    e=1;
    sp1=&s1;
    sp1->a=1;
    s4.c=22;
    s3.c=10;
    func1(sp1);
    struct Three * ll = (struct Three *) sp1;
    ll->two.c = 1000;
    printf("\n%d\t%d", s3.c, s4.c);
   return 0;
}