Ace school

with brainly

  • Get help from millions of students
  • Learn from experts with step-by-step explanations
  • Level-up by helping others

A community for students.

C++, Help needed? Can someone please explain to me the difference between a++; and ++a; or a--; and --a; ?

Computer Science
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.

Join Brainly to access

this expert answer

SIGN UP FOR FREE
okay, a++ means add 1 after performing an operation.......... ++a means add one before performing an operation.........same with --a and a--
..................this is the part where you say whether or not you understand.............
ok and one last question since gane is here, Can you please tell me whats the difference between double power(double, int) and int power(double, int) ?

Not the answer you are looking for?

Search for more explanations.

Ask your own question

Other answers:

both are function names
double power(double, int) .....returns a double int power(double, int) .........must return an int (will cause loss of data)
I see, thanks a lot!
you're welcome

Not the answer you are looking for?

Search for more explanations.

Ask your own question