post-increment tag

2 questions


1 answers
65 views
0
What is the value of x if "x = x++"?

int x = 7;x = x++;What happens when there's a code like this?Does the variable increase after calculation and assign a value to itself? When I compiled it, x still has a value of 7. In my book, it say...


2 answers
73 views
0
I want to know the difference between ++i and i++

What is the difference between the potential increase (++i) and the posterior increase (i++) in C?Which of the two should I use when I go around the for door?


© 2024 OneMinuteCode. All rights reserved.