MCQs > IT & Programming > C# > Which of the following is a correct way to convert a String to an int in C#?

C# MCQs

Which of the following is a correct way to convert a String to an int in C#?

Answer

Correct Answer: String s = "456"; int i; i = Convert.ToInt32(s);

Explanation:

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

C# Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

C# Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it