Write a C program that takes two integer arrays A and B from a text file. The arrays may have different lengths. Determine the average of the values in array A and array B. Next, write a function that prints the average values in ascending order on the screen.

1
if any mistake occurs please tell me.

Answers

2014-09-16T15:27:42+05:30
Double balance[3]={1000.0, 2.0, 3.4}
balance [0]=1000.0
balance [A]=2.0
balance [B]=3.4
double salary=balance [3];
#include <stdio.h> int main () { int n[ 3 ]; /* n is an array of 3 integers */ int i,j; /* initialize elements of array n to 0 */ for ( i = 0; i < 3; i++ ) { n[ i ] = i + 100; /* set element at location i to i + 100 */ } /* output each array element's value */ for (j = 0; j < 3; j++ ) { printf("Element[%d] = %d\n", j, n[j] ); } return 0; }

0