© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
7 replies
Fubuki

I dont understand how this works

string[] friends = { "Zuka", "Jajo", "Bedo", "Quji", "Rhaast" };

Console.WriteLine(" ");

foreach (string s in friends)
{
Console.WriteLine("Hello " + s);
}
so why does the string s transform into the friends I understood for how it worked with ints but I dont get it for strings
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,828Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ I dont understand this error in my code
C#CC# / help
2y ago
I dont understand whats wrong?
C#CC# / help
1h ago
i dont understand why sometimes this code works and sometimes i get an infinite loop
C#CC# / help
3y ago
SpotifyAPI - i dont understand things but i want this so bad...
C#CC# / help
2y ago