C Sharp (C#) - Strings and StringBuilder
What does the following C# code do?
int age = 25;
string message = $"I am {age} years old.";int age = 25;
string message = $"I am {age} years old.";$ before the string allows inserting variables inside curly braces.age is inserted where {age} appears, replacing the placeholder with its value.age into the string at the placeholder. -> Option B15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions