- 2
Write a c program to get the input for the array and print the position of the given element.
2 Réponses
+ 1
This is pretty simple define one array which type will be int like this
Int array[]={1,2,3,4,5,6}
If u want to take input from user u can use scanf with loop
Like this
For ( start from 0 to size of array )
Scanf () ;
Then use one loop for element printing
For (start .......)
Printf("index of array elements %d %d , variable , array[loop variable])