I have to below code which assigns memory using malloc:
typedef struct qu_n_t {
int item;
struct qu_n_t *next;
} qu_node_t;
qu_node_t *currentblock = NULL;
qu_node_t *tmp;
currentblock = (qu_node_t *) malloc( 5 * sizeof(qu_node_t) );
tmp = currentblock++;
Now once the code is executed, currentblock pointer will be assigned memory address of 5 * sizeof(qu_node_t)
. If I use currentblock what will be the address assigned to it? Would it be the first block address from the 5 blocks assigned using malloc?