we passed the address of a to the function , *aptr accepted it
now *aptr has the adress of a.
how are we accessing the bucket a from main using *aptr i am not able to understand
Not understanding how pointer is accessing the bucket
int *aptr in line 5 means you are declaring an integer pointer variables. It is of pointer type because pointer variable stores address.
*aptr in line 6 means you are dereferencing the pointer variable(ie. accessing the bucket at address stored in pointer variable). So there *aptr will actually be the value store at that address.