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
    12,487

    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
    2kaud's Avatar
    2kaud is offline Super Moderator Power Poster
    Join Date
    Dec 2012
    Location
    England
    Posts
    5,120

    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 the effects of your programs and the integrity of the machines they run on. This post is public domain as specified at https://creativecommons.org/publicdomain/zero/1.0/

    C, C++ Compiler: Microsoft VS2017

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 a Codeguru.com survey!


HTML5 Development Center