223k views
2 votes
Write a function min that has three c string parameters and returns the smallest.

User Rjzii
by
8.2k points

1 Answer

2 votes
You did not mention what programming language you are using. If you are using C# this code will do:

public static string min(string s1, string s2, string s3)
{
* * return new [] { s1, s2, s3 }.Min();
}
User Jfcorugedo
by
7.5k points

No related questions found