i was reading a program about structures and pointers but am unable to understand what is actually happening, can someone please help me out that what processes are happening.
thanks
Code:#include<stdio.h>
#define SIZE 5
struct stack
{
int term[SIZE];
int top;
};
void initstack( struct stack*);
int main()
{
struct stack st;
initstack(&st );
}
void initstack(struct stack*st) // having trouble understanding this part.
{
st->top = 0;
}