Discussion :: Strings - C#
-
Which of the following is correct way to convert a String to an int?
String s = "123"; int i; i = (int)s;
String s = "123"; int i; i = int.Parse(s);
String s = "123"; int i; i = Int32.Parse(s);
String s = "123"; int i; i = Convert.ToInt32(s);
String s = "123"; int i; i = CInt(s);
Answer : Option D
Explanation :
No answer description available for this question.
Be The First To Comment