G
gNash
Hi all,
i have some question on memory allocation.. if we use strlen()
for const string it will give string length because it will count a
variable upto '\0' character..
Is there any way to know the length of dynamically allocated
memory block..
and malloc(30) how to check 30 bytes has been allocated in memory?
Could you any one resolve my confusion please..
Thanks in advance.
Nash..
i have some question on memory allocation.. if we use strlen()
for const string it will give string length because it will count a
variable upto '\0' character..
Is there any way to know the length of dynamically allocated
memory block..
and malloc(30) how to check 30 bytes has been allocated in memory?
Could you any one resolve my confusion please..
Thanks in advance.
Nash..