my problem is highly conceptual problem.
when i write: node *new1=malloc(sizeof(node));
it works properly.
but when i write : node *new1=malloc(sizeof(node*));
it starts giving errors.
// node is the structure having a integer and pointer to itself.