Re: declaration of variable in for loop



In article <slrnfq41su.1kq4.willem@xxxxxxxxxxxxxx>,
Willem <willem@xxxxxxxx> wrote:
santosh wrote:
) You probably want:

) printf("%d\t%p = %d\n", i, (void *)&k, k);

) The 'p' format specifier expects a void * value and the type of the
) value yielded by the address-of operator is "pointer to T" where T is
) the type of it's operand.

Aren't casts to and from (void *) automatic ?

No, not when passing a parameter to a function.
--
"I will speculate that [...] applications [...] could actually see a
performance boost for most users by going dual-core [...] because it
is running the adware and spyware that [...] are otherwise slowing
down the single CPU that user has today" -- Herb Sutter
.



Relevant Pages

  • Re: Link contains spyware (Re: how does the CRC algorithm work?)
    ... then get a better browser. ... So either you already had spyware on your ... SaSW, Willem ... You all think I'm paranoid, ...
    (comp.programming)
  • Mouse Pointer
    ... Wouldnt think spyware would do it as ... have you got a Virus scanner running maybee a virus ... >Hi Guys my mouse pointer seems to have a mind of its ... the pointer moves to the left ...
    (microsoft.public.windowsxp.general)
  • Re: Newbie to Delphi
    ... Alan T wrote: ... give any pointer to help get started? ... That delphi basics link mentioned by Willem is excellent. ...
    (borland.public.delphi.non-technical)
  • Re: Link contains spyware (Re: how does the CRC algorithm work?)
    ... Willem schrieb: ... > - If your browser allows a web site to install spyware and to reset ... then get a better browser. ... So either you already had spyware on your ...
    (comp.programming)
  • Mouse Pointer
    ... servers from one console through a KVM, ... I doubt that this is spyware, ... >Hi Guys my mouse pointer seems to have a mind of its own. ...
    (microsoft.public.win2000.general)