class Program { static void Main(string[] args) { char []chars = {'a', 'b', 'c'}; String s = new String(chars); String s1 = "abcd"; int len1 = s1.Length; int len2 = s.Length; Console.WriteLine(len1 + " " + len2); Console.ReadLine(); } }
a) 4 0
b) 3 0
c) 3 4
d) 4 3
What will be the output of given code snippet?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
What will be the output of given code snippet?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!