R
ranjeet.gupta
Dear All,
Which is correct ?
Let suppose we allocate the memory for the 100 bytes,
int *PtrMemoryBlock = (int *)malloc(100);
If I do
PtrMemoryBlock = PtrMemoryBlock + 10;
will it point to memory loaction of 10th byte, memroy allocated by
malloc OR it will point to the 10 + 100 (Byte Allocated by malloc)
memory loaction ?
Thanks in advance
Ranjeet
Which is correct ?
Let suppose we allocate the memory for the 100 bytes,
int *PtrMemoryBlock = (int *)malloc(100);
If I do
PtrMemoryBlock = PtrMemoryBlock + 10;
will it point to memory loaction of 10th byte, memroy allocated by
malloc OR it will point to the 10 + 100 (Byte Allocated by malloc)
memory loaction ?
Thanks in advance
Ranjeet