| |

VerySource

 Forgot password?
 Register
Search
Author: mpc_bywind

Discuss a C language problem

[Copy link]

0

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-4-23 15:15:02
| Show all posts
>>yy偶不会
>> The master of LS said somehow, C didn't define the order of expression evaluation, of course, the result should be compiler related ...

> Yes, you are right.

Correction: The order of expression evaluation in the question is undefined.

The order of evaluation and the order of occurrence of side effects are determined by the order point. In the following cases, the order is defined:

function-call (),&&, ||,?:, and comma operators.

Other cases are undefined.
Reply

Use magic Report

1

Threads

5

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-6-14 18:15:01
| Show all posts
Thinking about what these are doing
Try not to use these that can cause confusion
i+1 looks much cooler!
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list