Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created June 24, 2021 20:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/4b1b3e15441885689d6f9ad96005cdb7 to your computer and use it in GitHub Desktop.
Save parzibyte/4b1b3e15441885689d6f9ad96005cdb7 to your computer and use it in GitHub Desktop.
static void Main(string[] args)
{
int[] arreglo = { 999, 28, 11, 96, 1, 2, 45, 0, 1 };
int longitud = longitudDeArregloEntero(arreglo);
int longitudConLength = arreglo.Length;
Console.WriteLine("La longitud según método es {0}, y según .Length es {0}", longitud, longitudConLength);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment