Reading Declarations in C

When reading code, follow these points: 1) * – pointer to 2) [] – array of 3) () – function returning 4) Start at the variable name 5) Read right first without crossing parenthesis 6) Then go left without crossing 7) Start inwards and move outwards. Reading is right to left. Examples are provided for different variable types.

Read More Reading Declarations in C

THE SIMPLICITY OF STACK

Stack, the most frequently used data structure. Stack, as the name suggests, keeps on stacking up the data one above the other. Consider an example of stacking up books in a box. The implementation of stack in your program is similar to that. Stack is often referred to as Last In First Out (LIFO). Why?Β  […]

Read More THE SIMPLICITY OF STACK