This is the basic array program which takes 2 array elements as input and gives that elements as output.PHP Code:
// testing arrays
# include <stdio.h>
printf("\nenter elements of array A");
printf("\nenter element =");
printf("\nthe entered array is %d ",a);
I don't understand why my compiler is showing output as 2 no matter what you enter.
I use gcc in Ubuntu OS