Salga de la declaración de Foreach C#
foreach (string s in sList)
{
if (s.equals("ok"))
{
break; // get out of the loop
}
}
GodsTheGuy
foreach (string s in sList)
{
if (s.equals("ok"))
{
break; // get out of the loop
}
}
int arr[] = {1,2,3,4,5};
for(int *a = arr; a < (&arr)[1]; ++a){
printf("%d\n", *a);
}