Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: Are bad developer libraries the problem with M$ software?

From: John Viega <viega(at)securesoftware.com>
Date: Mon Nov 25 2002 - 15:28:38 EST

No, you need to learn how declarations work in C. You have specified testbuff as "an array of 1024 pointers to characters". That means, you have allocated an array big enough to store 1024 pointers. On most machines, that's 4 bytes per pointer, which indeed would give you 4096.

John

On Fri, Nov 22, 2002 at 10:27:53PM +0500, Ali Saifullah Khan wrote:
> Here is a test done on the return of sizes by sizeof() using pointers.
Received on Mon Nov 25 16:58:37 2002

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:02:44 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library