Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!mit.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Richard <rgrdev_@gmail.com> |
| Newsgroups | comp.lang.c |
| Subject | Re: coding dynamic allocation question |
| Date | Sat, 19 Apr 2014 14:57:18 +0100 |
| Organization | http://www.ieee.org/ |
| Lines | 22 |
| Message-ID | <87mwfhcthd.fsf@gmail.com> (permalink) |
| References | <lismqq$dbh$1@dont-email.me> |
| Mime-Version | 1.0 |
| Content-Type | text/plain |
| Injection-Info | mit.eternal-september.org; posting-host="bdee7d74bb5599725cdba9fe2a37525e"; logging-data="29940"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/XIty5lcHuUX2sWCfRbE2JVY4nM0wNTQ8=" |
| User-Agent | Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
| Cancel-Lock | sha1:pHU2Y3r6+zF7Nb90BHaUsIilTWI= sha1:oNaNPzh6m4Re/GCYoHtsP6BiXGs= |
| Xref | csiph.com comp.lang.c:43123 |
Show key headers only | View raw
"Bill Cunningham" <nospam@nspam.invalid> writes: > I guess these two statements are not the same. Why not? I guess I > haven't learned this I haven't used it much. > > int *p; > p=malloc(sizeof (int)); //seems to be in error > p=malloc(sizeof (int *)); //is the correct coding > > What exactly is the difference? > > Bill > 8/10 Someone will think you're serious and provide a horrifically long laboured reply though no doubt. -- "Avoid hyperbole at all costs, its the most destructive argument on the planet" - Mark McIntyre in comp.lang.c
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
coding dynamic allocation question "Bill Cunningham" <nospam@nspam.invalid> - 2014-04-18 22:25 -0400
Re: coding dynamic allocation question Malcolm McLean <malcolm.mclean5@btinternet.com> - 2014-04-19 04:06 -0700
Re: coding dynamic allocation question "Bill Cunningham" <nospam@nspam.invalid> - 2014-04-19 19:04 -0400
Re: coding dynamic allocation question Barry Schwarz <schwarzb@dqel.com> - 2014-04-19 16:52 -0700
Re: coding dynamic allocation question Keith Thompson <kst-u@mib.org> - 2014-04-19 17:36 -0700
Re: coding dynamic allocation question "Bill Cunningham" <nospam@nspam.invalid> - 2014-04-19 20:47 -0400
Re: coding dynamic allocation question Keith Thompson <kst-u@mib.org> - 2014-04-19 18:55 -0700
Re: coding dynamic allocation question "Bill Cunningham" <nospam@nspam.invalid> - 2014-04-19 21:59 -0400
Re: coding dynamic allocation question Keith Thompson <kst-u@mib.org> - 2014-04-19 19:19 -0700
Re: coding dynamic allocation question "Bill Cunningham" <nospam@nspam.invalid> - 2014-04-19 22:47 -0400
Re: coding dynamic allocation question Keith Thompson <kst-u@mib.org> - 2014-04-19 20:18 -0700
Re: coding dynamic allocation question Richard <rgrdev_@gmail.com> - 2014-04-20 11:00 +0100
Re: coding dynamic allocation question rescattered@gmail.com - 2014-04-20 05:25 -0700
Re: coding dynamic allocation question rescattered@gmail.com - 2014-04-20 05:42 -0700
Re: coding dynamic allocation question Richard <rgrdev_@gmail.com> - 2014-04-19 14:57 +0100
Re: coding dynamic allocation question Ian Collins <ian-news@hotmail.com> - 2014-04-20 23:24 +1200
Re: coding dynamic allocation question Michael Angelo Ravera <maravera@prodigy.net> - 2014-04-19 16:19 -0700
csiph-web