why do they shows different output clang and gcc [on hold]
up vote
-2
down vote
favorite
one day i was using the GCC compiler dev c++ and typed a simple program of incrementation like
int x=1;
x=x++ + ++x + x++;
cout<<x;
it shows output
7
but in other compiler CLang compiler it shows different output
why?
please help me i am new in programming kindly guide me.
thanking you in advance
programming-challenge compiler
New contributor
put on hold as off-topic by Heslacher, 200_success, Toby Speight, RoToRa, πάντα ῥεῖ 19 mins ago
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Authorship of code: Since Code Review is a community where programmers improve their skills through peer review, we require that the code be posted by an author or maintainer of the code, that the code be embedded directly, and that the poster know why the code is written the way it is." – Heslacher, 200_success, πάντα ῥεῖ
If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |
up vote
-2
down vote
favorite
one day i was using the GCC compiler dev c++ and typed a simple program of incrementation like
int x=1;
x=x++ + ++x + x++;
cout<<x;
it shows output
7
but in other compiler CLang compiler it shows different output
why?
please help me i am new in programming kindly guide me.
thanking you in advance
programming-challenge compiler
New contributor
put on hold as off-topic by Heslacher, 200_success, Toby Speight, RoToRa, πάντα ῥεῖ 19 mins ago
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Authorship of code: Since Code Review is a community where programmers improve their skills through peer review, we require that the code be posted by an author or maintainer of the code, that the code be embedded directly, and that the poster know why the code is written the way it is." – Heslacher, 200_success, πάντα ῥεῖ
If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |
up vote
-2
down vote
favorite
up vote
-2
down vote
favorite
one day i was using the GCC compiler dev c++ and typed a simple program of incrementation like
int x=1;
x=x++ + ++x + x++;
cout<<x;
it shows output
7
but in other compiler CLang compiler it shows different output
why?
please help me i am new in programming kindly guide me.
thanking you in advance
programming-challenge compiler
New contributor
one day i was using the GCC compiler dev c++ and typed a simple program of incrementation like
int x=1;
x=x++ + ++x + x++;
cout<<x;
it shows output
7
but in other compiler CLang compiler it shows different output
why?
please help me i am new in programming kindly guide me.
thanking you in advance
programming-challenge compiler
programming-challenge compiler
New contributor
New contributor
New contributor
asked 5 hours ago
user195081
1
1
New contributor
New contributor
put on hold as off-topic by Heslacher, 200_success, Toby Speight, RoToRa, πάντα ῥεῖ 19 mins ago
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Authorship of code: Since Code Review is a community where programmers improve their skills through peer review, we require that the code be posted by an author or maintainer of the code, that the code be embedded directly, and that the poster know why the code is written the way it is." – Heslacher, 200_success, πάντα ῥεῖ
If this question can be reworded to fit the rules in the help center, please edit the question.
put on hold as off-topic by Heslacher, 200_success, Toby Speight, RoToRa, πάντα ῥεῖ 19 mins ago
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Authorship of code: Since Code Review is a community where programmers improve their skills through peer review, we require that the code be posted by an author or maintainer of the code, that the code be embedded directly, and that the poster know why the code is written the way it is." – Heslacher, 200_success, πάντα ῥεῖ
If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes