QuestionQ212

VerifiedData Manipulation

A developer created a variable named “MyNumbers” of type String and assigned it the value “1, 2, 3, 4, 5, 6”. What data type results from the expression MyNumbers.Split(","c)(1)?

Explanation

String.Split(","c) produces an array of String values, and indexing that array with (1) returns one individual element. Each individual element is a String.

Community Discussion

No comments yet. Be the first to start the discussion!