See Swapna, M not much with VC++, but i can very well tell you about malloc and calloc in Turbo C.
this statement will allocate 2 bytres of memory to p and will return a void pointer which is then typecasted by (int*).
to allocate memory to a block using malloc requires looping of statement....
This allocation is successful tries to allocate memory sequentiall but if it fails returns a null pointer.
n represents no. of blocks.
this is useful to allocate memory to a block in a single statement.
Both alocates memory sequentiall......
I hope that this would clear your doubts. Although i have explainned in Turbo, concepts would be same in VC++ too, i think.......