What is the final value of i? [code]for i=[1:10] end[/code]

Answer: c
Explanation: The assignment of the index value is done within []. This leads to a syntactical error. We can put it in parentheses or just write it after for then the output would’ve been 10.
 

Tìm kiếm

Back
Top