Yes its taking two elements for each array. see below you will get it.
[manjunathks@svs erver temp]$ ./temp
enter 1st array elements
1
2
enter 2nd elements
3
4
the sum is
100
102
[manjunathks@svs erver temp]$
Thanks,
Manjunath
[manjunathks@svs erver temp]$ ./temp
enter 1st array elements
1
2
enter 2nd elements
3
4
the sum is
100
102
[manjunathks@svs erver temp]$
Thanks,
Manjunath