What is the difference between ++i and i++??
Author | Message |
---|---|
Mike | # Posted two weeks ago |
Hi, I'm reading the chapter on loops in C and I've come across the What is the difference between Can you give me a few examples to illustrate? I understand that one add | |
Ads | |
Darth JarJar | # Posted one week ago |
![]() |
They all say they're "reading the chapter" lol. Really? Reaaaaally? It's not like the explanation is hard to find, is it? |
Clara | # Posted yesterday |
![]() |
@Darth JarJar: You're supposed to be nice to noobs ;) What don't you understand, @Mike? |
Phoenix | # Posted yesterday |
![]() |
In C, As you guessed:
A simple example: int i = 4;
|
Valter | # Posted yesterday |
![]() |
It's not bad practice to write: for (int i = 0; i < 5; ++i) I guess people are just more used to |
Kegon | # Posted two hours ago |
![]() |
Think fast: int i = 1, j = 10; What is |
Mike | # Posted two hours ago |
Thanks yall :D I guess Siteraw.com is the best site on the internet after all! |
|
Valter | # Posted one hour ago |
![]() |
(Approximate) assembly code of mov eax, 5 You essentially reverse the last two lines with |
Phoenix | # Posted one hour ago |
![]() |
@Mike: On the Internets you fking heretic. |
Darth JarJar | # Posted 7 minutes ago |
![]() |
@Phoenix: It just confirms what I was saying, bro can't read |
Post a reply
Please be kind and courteous in your replies. Don't roast others for no reason.