paint-brush
Increment and Decrement Operators in C/C++by@wasiffaisal2002
308 reads
308 reads

Increment and Decrement Operators in C/C++

by Wasif Faisal3mJuly 11th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

The sign ' ++ and — —' in C/C++ confusing for many beginners. Pre and Post Increment operators are used to increment the value of an integer. ++x increments the value and immediately returns it. But, ++x does the opposite as it doesn't return the incremented value immediately. The result is (10+1 → 11) and the result is 11+0 = 11+ 0 = 11-22. Let me know in I am able to help you in the response section of this article.
featured image - Increment and Decrement Operators in C/C++
Wasif Faisal HackerNoon profile picture
Wasif Faisal

Wasif Faisal

@wasiffaisal2002

Polyglot Programmer

Learn More
LEARN MORE ABOUT @WASIFFAISAL2002'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Wasif Faisal HackerNoon profile picture
Wasif Faisal@wasiffaisal2002
Polyglot Programmer

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite