[COLOR="DarkGreen"]/*
Dichiaro e inizializzo le array, potrei anche scegliere di creare dei
cicli for per l'inserimento da tastiera con 'scanf' tramite console
per esempio.
*/[/COLOR]
[COLOR="Blue"]int [/COLOR]my_array1[[COLOR="Red"]5[/COLOR]] = {[COLOR="Red"]4[/COLOR], [COLOR="red"]56[/COLOR], [COLOR="red"]32[/COLOR], [COLOR="red"]94[/COLOR], [COLOR="red"]60[/COLOR]};
[COLOR="blue"]int [/COLOR]my_array2[[COLOR="red"]5[/COLOR]] = {[COLOR="red"]43[/COLOR], [COLOR="red"]22[/COLOR], [COLOR="red"]95[/COLOR], [COLOR="red"]55[/COLOR], [COLOR="red"]1[/COLOR]};
[COLOR="DarkGreen"]/*
Anche qui si potrebbe fare un ciclo for per inizializzare automaticamente
l'array che conterrà le 2 precedenti.
*/[/COLOR]
[COLOR="blue"]int [/COLOR]add_array[[COLOR="red"]10[/COLOR]] = {my_array1[[COLOR="red"]0[/COLOR]], my_array1[[COLOR="red"]1[/COLOR]], my_array1[[COLOR="red"]2[/COLOR]],
my_array1[[COLOR="red"]3[/COLOR]], my_array1[[COLOR="red"]4[/COLOR]],
my_array2[[COLOR="red"]0[/COLOR]], my_array2[[COLOR="red"]1[/COLOR]], my_array2[[COLOR="Red"]2[/COLOR]],
my_array2[[COLOR="red"]3[/COLOR]], my_array2[[COLOR="red"]4[/COLOR]]};
[COLOR="DarkGreen"]/*
Stampo in video il contenuto dell'array.
*/[/COLOR]
[COLOR="Navy"]for[/COLOR]([COLOR="blue"]int [/COLOR]i = [COLOR="Red"]0[/COLOR]; i [COLOR="Navy"]<[/COLOR] [COLOR="red"]10[/COLOR]; i[COLOR="Navy"]++[/COLOR])
{
printf([COLOR="DarkOrange"]"%d\n"[/COLOR], add_array[i]);
}