Threadser.net
數據
關鍵字
功能建議
Blog
Following
Threads
Change language
登入
串文
串文鏈結
2024-09-23 20:16
What will be the output of the final print(x) statement, and why? developers
讚
34
回覆
70
轉發
4
作者
Shelynna Mckynhills
iamshelynna
粉絲
60
串文
8+
讚
回覆
轉發
24小時粉絲增長
無資料
互動率
(讚 + 回覆 + 轉發) / 粉絲數
180.00%
回覆 (BETA)
最先回覆的內容
發文後
用戶
內容
25 分鐘內
tidah.yat
5
5 小時內
Teteu Costela
teteu_costelinha
5 because you’re printing the variable “x” not the output of the tricky_func
5 小時內
Raymond Wong
starry2011night
pass by value
18 小時內
Wil Laan
willaanatwillaannl
The returned value is still on the stack somewhere, but x is unchangrd because the parameter is not a referenced. You should write x=tricky_func(x)
5 個月內
Muhammad Ali Abdullah
abdullah.pro.dev
5 is ans