Question: a) Write a program in C and use Pointers and Arrays that takes the number of elements to be stored and the integers to be

a) Write a program in C and use Pointers and Arrays that takes the number of elements to be stored and the integers to be stored as input, and prints only the elements of the array that have an even index.

Example:

Input the number of elements to store in the array (max 10) : 5

Input 5 integers to be stored :

Index - 0 : 12

Index - 1 : 29

Index - 2 : 68

Index - 3 : 32

Index - 4 : 97

Expected Output :

The elements of array that have an even index :

Index - 0 : 12

Index - 2 : 68

Index - 4 : 97

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!