CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2008
    Location
    Scotland
    Posts
    379

    Binary comma operator

    Hi,

    I found this page http://en.wikipedia.org/wiki/Comma_operator while reading up on the comma operator. Can anyone point out where the comma operator is being used in the sample Tortoise/Hare algorithm? I can't see it myself.

    Thanks,
    Alan

  2. #2
    Join Date
    Jul 2009
    Location
    Gothenburg
    Posts
    12

    Re: Binary comma operator

    Third line to separate variable declarations (not as operator, as stated above)
    Sixth line to separate loop increment statements (as operator)

    Not a particularly instructive example I have to say.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured