題目是 x = x++ - ++x * 2

2006-10-30 12:12 am
題目是 x = x++ - ++x * 2
If x=3, result = ?
需解釋

回答 (1)

2006-10-30 1:10 am
✔ 最佳答案
if this is a computer program question

solution:

because ++x,so x=4

therefore,x=4-4*2
=4-8
=-4

because x++,x=-3

the result is -3
參考: my c program knowledge


收錄日期: 2021-04-13 13:38:35
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20061029000051KK03277

檢視 Wayback Machine 備份