A community for students.
Here's the question you clicked on:
 0 viewing
Christos
 3 years ago
C++,
Help needed?
Can someone please explain to me the difference between a++; and ++a; or a; and a;
?
Christos
 3 years ago
C++, Help needed? Can someone please explain to me the difference between a++; and ++a; or a; and a; ?

This Question is Closed

primeralph
 3 years ago
Best ResponseYou've already chosen the best response.4okay, a++ means add 1 after performing an operation.......... ++a means add one before performing an operation.........same with a and a

primeralph
 3 years ago
Best ResponseYou've already chosen the best response.4..................this is the part where you say whether or not you understand.............

Christos
 3 years ago
Best ResponseYou've already chosen the best response.0ok 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) ?

Christos
 3 years ago
Best ResponseYou've already chosen the best response.0both are function names

primeralph
 3 years ago
Best ResponseYou've already chosen the best response.4double power(double, int) .....returns a double int power(double, int) .........must return an int (will cause loss of data)
Ask your own question
Sign UpFind more explanations on OpenStudy
Your question is ready. Sign up for free to start getting answers.
spraguer
(Moderator)
5
→ View Detailed Profile
is replying to Can someone tell me what button the professor is hitting...
23
 Teamwork 19 Teammate
 Problem Solving 19 Hero
 Engagement 19 Mad Hatter
 You have blocked this person.
 ✔ You're a fan Checking fan status...
Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.