- 2

Write a c program to get the input for the array and print the position of the given element.

27th Jan 2021, 2:54 PM
Hari priya
Hari priya - avatar
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])
27th Jan 2021, 3:00 PM
A S Raghuvanshi
A S Raghuvanshi - avatar
30th Jan 2021, 7:10 AM
SERG Starkov
SERG Starkov - avatar