שפת C: הבדלים בין גרסאות בדף

תוכן שנמחק תוכן שנוסף
אין תקציר עריכה
אין תקציר עריכה
שורה 46:
[[sv:Programmering i ANSI-C]]
[[ta:சி]]
int max1 = a[0];
int max2 = b[0];
for (int i = 1; i < a.Length; i++)
{
if (a[i] > max1)
max1 = a[i];
if (b[i] >max2)
max2 = b[i];
}
int[] arr = new int[2] { max1, max2 };
return arr;