-1
1
0
2
Answer is Right!
Answer is Wrong!
The correct answer is: C. 0
The TryParse
method returns a value of type bool
indicating whether the conversion was successful. If the conversion was successful, the value of the variable is assigned the converted value. If the conversion was not successful, the value of the variable is assigned 0
.
Option A: -1
is not a valid return value for the TryParse
method.
Option B: 1
is not a valid return value for the TryParse
method.
Option D: 2
is not a valid return value for the TryParse
method.