Á Ánh Dương New member Sep 18, 2021 #1 What will be the output of the following C# code? Code: static void Main(string[] args) { String name = "Dr.Gupta"; Console.WriteLine("Good Morning" + name); } A. Dr.Gupta B. Good Morning C. Good Morning Dr.Gupta D. Good Morning name
What will be the output of the following C# code? Code: static void Main(string[] args) { String name = "Dr.Gupta"; Console.WriteLine("Good Morning" + name); } A. Dr.Gupta B. Good Morning C. Good Morning Dr.Gupta D. Good Morning name
Đ Đỗ Huyền Trang New member Sep 18, 2021 #2 Answer: c Explanation: How to initialize a string variable and concatenate string using ‘+’ operator. Output: Code: Good Morning Dr.Gupta. Upvote 0 Downvote
Answer: c Explanation: How to initialize a string variable and concatenate string using ‘+’ operator. Output: Code: Good Morning Dr.Gupta.