Friday 22 December 2017

Get the length of dynamically allocated array in C









How
do I get the length of a dynamically allocated array in
C?



I
tried:



sizeof(ptr)
sizeof(ptr
+ 100)



and
they didn't work.

No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...