Re: Basic question about malloc

2015-04-22 Thread Ludovic Brenta
mudongliang wrote: But the result has no feature about a ,b ,c! Can someone tell me what's wrong with me? My GCC version is gcc (Debian 4.9.2-10) 4.9.2 mudongliang malloc is not part of gcc, it is part of glibc. I think that recent versions of glibc deliberately return random addresses, so the

Basic question about malloc

2015-04-22 Thread mudongliang
Hi, I'm looking for that whether the object allocated by malloc is the multiple of certain bytes! Or how does the malloc allocate dynamic memory ?? I does an experiment in my computer! #include #include #define NUM 33 int main(int argc,const char *argv[]) { char *a, *b, *c; a = mal