Posting the code,
might be of some help for somebody.

Code:
main()
{
    int **n,p;

    n = (int **) malloc (sizeof(int *));
    (*n) = &p;
     **n = 30;

    printf(" %d \n",p);

}
@laserlight Thanks :-)