Question: The program should include the following function: int is _ arithmetic _ sequence ( int * sequence , int n ) ; This function returns

The program should include the following function:
int is_arithmetic_sequence(int *sequence, int n);
This function returns 1 if sequence is an arithmetic sequence, and returns 0 otherwise. n is the size of the sequence (array).
The function should use pointer arithmetic - not subscripting
Examples (your program must follow this format precisely)
Example #1
Enter length of the sequence: 5
Enter numbers of the sequence: 317325688
no
Example #2
Enter length of the sequence: 5
Enter numbers of the sequence: 310172431
yes
 The program should include the following function: int is_arithmetic_sequence(int *sequence, int

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!