Im very new at this but what means ++ simbol?
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Im very new at this but what means ++ simbol?

  1. #1
    Join Date
    Mar 2014
    Posts
    1

    Im very new at this but what means ++ simbol?

    for (i=0;i<cars.length;i++)

    What means ++

    Thanks

  2. #2
    Arjay's Avatar
    Arjay is offline Moderator / MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    11,295

    Re: Im very new at this but what means ++ simbol?

    It's same as (assuming i is an int):
    Code:
    i = i + 1;
    When in the for loop, it increments the i variable by 1 each time through the loop.

  3. #3
    Join Date
    Dec 2012
    Location
    England
    Posts
    2,382

    Re: Im very new at this but what means ++ simbol?

    Last edited by 2kaud; March 16th, 2014 at 06:38 AM.
    All advice is offered in good faith only. You are ultimately responsible for effects of your programs and the integrity of the machines they run on.

Posting Permissions

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


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center