Array manipulation exercise
@sc_ray pretty good effort if you are new to C programming.

A few points in your code which you can improve:


Taking array values from command-line is not good. Its better you use scanf and proper data-type. Below are logs when I pass a very long int value as cmd-line argument. It fails to store the value and gives garbage.

./a.out 7 999999999999 0 123
Reading input value 7 into array
Reading input value 2147483647 into array
Reading input value 0 into array
Reading input value 123 into array
Printing out the original array
7  2147483647  0  123
.....

Hope this is a code pasting mistake. Remove this arr array not needed.

int arr[] = { 47, 71, 5, 58, 95, 22, 61, 0, 47 };
identifyTheIndices(arr,sizeof(arr)/sizeof(arr[0]));

The searching of elements in array can be improved using Binary Search Algo rather than sequential search.


Rest all looks good.