Ask your own question, for FREE!
Computer Science 7 Online
OpenStudy (christos):

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

OpenStudy (primeralph):

okay, a++ means add 1 after performing an operation.......... ++a means add one before performing an operation.........same with --a and a--

OpenStudy (primeralph):

..................this is the part where you say whether or not you understand.............

OpenStudy (christos):

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) ?

OpenStudy (christos):

both are function names

OpenStudy (primeralph):

double power(double, int) .....returns a double int power(double, int) .........must return an int (will cause loss of data)

OpenStudy (christos):

I see, thanks a lot!

OpenStudy (primeralph):

you're welcome

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!