What is the error in the code? [code]a=[[1;2];(2,3)][/code]

Thành Đạt

New member
What is the error in the code?
Code:
a=[[1;2];(2,3)]
A. Third brackets are wrong
B. The semicolon within the second third brackets
C. There is no error
D. Error: Expression or statement is incorrect–possibly unbalanced
 
Answer: d
Explanation: A matrix cannot have parentheses within itself. Any integer, whether to be included row wise or column wise, is to be written within a third bracket.
 

Tìm kiếm

Back
Top