|
|||||||||||
|
Re: Are bad developer libraries the problem with M$ software?
From: <cdavison(at)nucleus.com>
Date: Mon Nov 18 2002 - 12:55:31 EST
Looks like there's a special case for char arrays on the stack (which I guess technically would be of type char[] and not char*). Once you pass the string around to functions as a char*, or allocate it dynamically, you can't use sizeof.
#include <stdio.h>
Output:
This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:02:44 EDT |
||||||||||
|
|||||||||||