Hi,
I need to understand the following code.
thenCode:typedef struct x { int a; char c; fload f; }stx; struct upper { int num; stx *pstx; } now,here *pstx is a pointer to a structure stx. 1.if we write stx *pstx[10];here pstx is an array of pointers to the structure stx. to allocate the memory pstx[0] = new stx; 2.if pstx = new stx[10].
Coulde somebody tell me the difference between 1 and 2.
Best Regards
Murali026