# Anyone know C Programming?

**URL:** <https://forum.kirupa.com/t/anyone-know-c-programming/183136>\
**Category:** Uncategorized\
**Created:** [March 24, 2006, 3:13am UTC](https://forum.kirupa.com/t/anyone-know-c-programming/183136 "2006-03-24T03:13:56Z")\
**Posts on this page:** 8\
**Page:** 2

<div class="post-metadata">

**Author:** ![ya3](https://avatars.discourse-cdn.com/v4/letter/y/e95f7d/32.png) [@ya3](https://forum.kirupa.com/u/ya3)\
**Post date:** [March 25, 2006, 6:46am UTC](https://forum.kirupa.com/t/anyone-know-c-programming/183136/21 "2006-03-25T06:46:05Z")

</div>

I never did understand that ‘++’ operator.

---

<div class="post-metadata">

**Author:** ![Jeff\_Wheeler](https://avatars.discourse-cdn.com/v4/letter/j/59ef9b/32.png) [@Jeff\_Wheeler](https://forum.kirupa.com/u/Jeff_Wheeler)\
**Post date:** [March 25, 2006, 6:46am UTC](https://forum.kirupa.com/t/anyone-know-c-programming/183136/22 "2006-03-25T06:46:58Z")

</div>

It increases one… (after comparing it or returning it if it’s after the value… otherwise before…)

---

<div class="post-metadata">

**Author:** ![ya3](https://avatars.discourse-cdn.com/v4/letter/y/e95f7d/32.png) [@ya3](https://forum.kirupa.com/u/ya3)\
**Post date:** [March 25, 2006, 7:00am UTC](https://forum.kirupa.com/t/anyone-know-c-programming/183136/23 "2006-03-25T07:00:18Z")

</div>

Oh… so it’s just like

```auto
variable += 1

```

---

<div class="post-metadata">

**Author:** ![Jeff\_Wheeler](https://avatars.discourse-cdn.com/v4/letter/j/59ef9b/32.png) [@Jeff\_Wheeler](https://forum.kirupa.com/u/Jeff_Wheeler)\
**Post date:** [March 25, 2006, 7:04am UTC](https://forum.kirupa.com/t/anyone-know-c-programming/183136/24 "2006-03-25T07:04:14Z")

</div>

Yep…

---

<div class="post-metadata">

**Author:** ![955](https://avatars.discourse-cdn.com/v4/letter/9/4bbf92/32.png) [@955](https://forum.kirupa.com/u/955)\
**Post date:** [March 25, 2006, 9:35am UTC](https://forum.kirupa.com/t/anyone-know-c-programming/183136/25 "2006-03-25T09:35:50Z")

</div>

Actually, it’s not…

The special thing about variable++ is that it increments the variable, but the expression itself returns the value of the variable before being incremented.

So:

```auto

int x = 56;
int x2 = 56;
int y = x++;

y (56) == x2 (56) (TRUE)
x (57) == x2 (56) (FALSE)

```

So, C++ would suggest that C is being improved, but C++ is just the same as C 😛

---

<div class="post-metadata">

**Author:** ![hsadan](https://avatars.discourse-cdn.com/v4/letter/h/7bcc69/32.png) [@hsadan](https://forum.kirupa.com/u/hsadan)\
**Post date:** [March 25, 2006, 5:38pm UTC](https://forum.kirupa.com/t/anyone-know-c-programming/183136/26 "2006-03-25T17:38:58Z")

</div>

> [@Krilnon](#):
>
> It’s still here: [kirupa.com - IRC Chat](http://www.kirupa.com/me/irc.htm)

yea I got to that page, but as I do not have irc and did not intend to download it, I used the ‘click here’ link… to a dead page ☹

so the actual irc channel/server is still around, yea?

---

<div class="post-metadata">

**Author:** ![Sliker\_Hawk](https://avatars.discourse-cdn.com/v4/letter/s/d26b3c/32.png) [@Sliker\_Hawk](https://forum.kirupa.com/u/Sliker_Hawk)\
**Post date:** [March 25, 2006, 5:47pm UTC](https://forum.kirupa.com/t/anyone-know-c-programming/183136/27 "2006-03-25T17:47:48Z")

</div>

[whisper]Whoa, this is awesome. Guess I’m a bit late, though[/whisper]

How can you not know what ++ and – do? It’s possibly the most simple operator in C++. And many other languages, for that matter.

for (int x = 0;x\<peopleWhoDontKnow;x++)  
{  
cout\<\<“Read a tutorial.”\<\<endl;  
}

… Ok, so that’s C++, not C.

---

<div class="post-metadata">

**Author:** ![Jeff\_Wheeler](https://avatars.discourse-cdn.com/v4/letter/j/59ef9b/32.png) [@Jeff\_Wheeler](https://forum.kirupa.com/u/Jeff_Wheeler)\
**Post date:** [March 25, 2006, 5:54pm UTC](https://forum.kirupa.com/t/anyone-know-c-programming/183136/28 "2006-03-25T17:54:41Z")

</div>

λ: I said the same thing really briefly and shortly (I’m not sure if you understood my brilliantly concise language):

> [@nokrev](#):
>
> (after comparing it or returning it if it’s after the value… otherwise before…)

[Previous page](https://forum.kirupa.com/t/anyone-know-c-programming/183136.md?page=1)
