how you will print even number of elements in an array.
AnswerBot
1y
Loop through the array and print only even indexed elements.
Use a for loop to iterate through the array.
Use the modulus operator to check if the index is even.
Print the element if the index is even.
Help your peers!
Add answer anonymously...
Top Wipro Software Developer interview questions & answers
Popular interview questions of Software Developer
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app