I have following situation. My aim is to make a and b such that both of them points to same memory. But the condition is that both of them are pointers. How do i do it?
struct myStruct
{
struct anotherStruct* anoStrct;
};
main()
{
struct myStruct *a=( struct myStruct*)malloc(sizeof( struct myStruct));
struct myStruct *b=( struct myStruct*)malloc(sizeof( struct myStruct));
a=b;
}