This content originally appeared on DEV Community and was authored by Mohammed Salah
#include<iostream>
using namespace std;
int main()
{
int x = 1;
++x;
cout<<" x = "<<x++<<endl;
cout<<" new x = "<<x<<endl;
return 0 ;
}
This content originally appeared on DEV Community and was authored by Mohammed Salah
Print
Share
Comment
Cite
Upload
Translate
Updates
There are no updates yet.
Click the Upload button above to add an update.

APA
MLA
Mohammed Salah | Sciencx (2025-01-25T20:39:47+00:00) C++19th Code ( postfix & Prefix) –> (X++) & (++X). Retrieved from https://www.scien.cx/2025/01/25/c19th-code-postfix-prefix-x-x/
" » C++19th Code ( postfix & Prefix) –> (X++) & (++X)." Mohammed Salah | Sciencx - Saturday January 25, 2025, https://www.scien.cx/2025/01/25/c19th-code-postfix-prefix-x-x/
HARVARDMohammed Salah | Sciencx Saturday January 25, 2025 » C++19th Code ( postfix & Prefix) –> (X++) & (++X)., viewed ,<https://www.scien.cx/2025/01/25/c19th-code-postfix-prefix-x-x/>
VANCOUVERMohammed Salah | Sciencx - » C++19th Code ( postfix & Prefix) –> (X++) & (++X). [Internet]. [Accessed ]. Available from: https://www.scien.cx/2025/01/25/c19th-code-postfix-prefix-x-x/
CHICAGO" » C++19th Code ( postfix & Prefix) –> (X++) & (++X)." Mohammed Salah | Sciencx - Accessed . https://www.scien.cx/2025/01/25/c19th-code-postfix-prefix-x-x/
IEEE" » C++19th Code ( postfix & Prefix) –> (X++) & (++X)." Mohammed Salah | Sciencx [Online]. Available: https://www.scien.cx/2025/01/25/c19th-code-postfix-prefix-x-x/. [Accessed: ]
rf:citation » C++19th Code ( postfix & Prefix) –> (X++) & (++X) | Mohammed Salah | Sciencx | https://www.scien.cx/2025/01/25/c19th-code-postfix-prefix-x-x/ |
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.