Question: 1. Using pointers write a C program that print the sum of an array element whose position is even. 2. Write a C program to

1. Using pointers write a C program that print the sum of an array element whose position is even.

2. Write a C program to insert string and then print it in reverse order. For example, given the string? c language?. The program print? egaugnal e? by using pointer.

Given the following: declaration:

int X[8} = {8,6,5,4,3,1,7,2};

Using the pointer write program to stores the value in the array N

The second element is equal to the second element + bottom in x.

The third element is equal to the third element + the last element + before the penultimate in x and so.

8 10 6 13 5 6 X N 4 7 3 7

8 10 6 13 5 6 X N 4 7 3 7 6 7 13 2 10

Step by Step Solution

3.21 Rating (159 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Lets tackle each part of the question stepbystep 1 Sum of Array Elements at Even Positions To solve ... View full answer

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 Programming Questions!