Blogged By: Jwalitha N J, Bushra Firdose
Today’s data structure session was about the stacks using pointers. The operation of PUSHing the elements at the top of the stack using structured pointers was explained with the illustrated examples.
We were also briefed about the perception of statements of both programmer and the C compiler. The precedence of the operators in the statements when using pointers in the program code.
What is difference between
Int a (versus) Int *a;
Struct node *pnew (versus) struct node **pnew
(*top)=pNew (versus) top=pNew
void *func() (versus) void (*func) ()
Is “a=b,c;” a correct statement, if so what value will a get and why ?
Struct node
{
int info;
struct node *link;
};
Links for more information:
http://www.wiziq.com/tutorial/13556-STACKS-IN-DATA-STRUCTURE