Skip to main content
todoによる終了済みの懸賞 信用度 50 点を授与
ハイライト部分のみ修正しました。
ソース リンク
3100
  • 2,607
  • 13
  • 27

I saw this expression before in some code.

As you know, the expression "if ((ret = func()) == -1)"if ((ret = func()) == -1) is the same as "
ret = func();
if (ret == -1)"

ret = func();
if (ret == -1)

but it is not a good recommendation for the C programmer.

I saw this expression before in some code.

As you know, the expression "if ((ret = func()) == -1)" is the same as "
ret = func();
if (ret == -1)"

but it is not a good recommendation for the C programmer.

I saw this expression before in some code.

As you know, the expression if ((ret = func()) == -1) is the same as

ret = func();
if (ret == -1)

but it is not a good recommendation for the C programmer.

ソース リンク

I saw this expression before in some code.

As you know, the expression "if ((ret = func()) == -1)" is the same as "
ret = func();
if (ret == -1)"

but it is not a good recommendation for the C programmer.