luciano miguel ferreira rocha strangensknoiporg dont know one expect better secure code community security list post like shows clearly knowledge c fri nov 22 2002 102753pm 0500 ali saifullah khan wrote test done return sizes sizeof using pointers include int mainvoid char testbuff1024 read like new array 1024 elements type pointer char pointer occupies natural word size 32 bits 64bits wonder get 41024 sizeofchar numer_of_elements int len sizeoftestbuff cout len n return 0 using int len sizeofchartestbuff sizeof returns size types use vars normal form sizeof var sizeofvar youre changing type var cast course youll get size new type regards luciano rocha consciousness annoying time naps mon 25 nov 2002 202526 0000 bad developer libraries problem software