What is the use of i in `printf("%d\n",(a->ptr)[i]);`?

Hey guys I am currently learning DSA and in ADT I have a problem: This is a code that creates a custom array and takes the input of the array and stores it and prints it too but I want to ask that what does that [i] do in printf("%d\n",(a->ptr)[i]); that thing is what I… Read More What is the use of i in `printf("%d\n",(a->ptr)[i]);`?