Can someone explane to me how prefixs and postfixs are used and how they work. :o
Marilyn_Manson
0
Newbie Poster
Recommended Answers
Jump to PostPlease don't double post. Someone knowledgable in what you're asking will get to you as soon as they can.
Jump to Postprefix notation like --B does the operation BEFORE using the value in an expression, (pre as in do it before), whereas postfix like A++ does the operator AFTER using the value in the expression (post as in after).
In your expression above, you should 'play compiler' and see what …
Jump to Post#include <iostream> using namespace std; int double Square (double Value); int main () { double Number, SquaredNumber; Number = 5; SquaredNumber = Square (Number); cout << SquaredNumber << endl; return 0; } int double Square (double Value) { double SquareReturn; SquareReturn = Value * Value; return SquareReturn; …
All 12 Replies
Marilyn_Manson
0
Newbie Poster
Marilyn_Manson
0
Newbie Poster
Dani
4,084
The Queen of DaniWeb
Administrator
Featured Poster
Premium Member
Marilyn_Manson
0
Newbie Poster
Chainsaw
12
Posting Pro in Training
Marilyn_Manson
0
Newbie Poster
Marilyn_Manson
0
Newbie Poster
Luna
0
Newbie Poster
meabed
37
Junior Poster
Team Colleague
Dave Sinkula
2,398
long time no c
Team Colleague
.·)Tusky(·.
0
Newbie Poster
Dani
4,084
The Queen of DaniWeb
Administrator
Featured Poster
Premium Member
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.