ExplanationIn the above program integer array b [ ] is declared and initialized in function
arry (). The function arry () is called five times. During each call it returns successive elements
of array b [] to function main (). Thus, all elements of array b[ ] are displayed,
f) Interchange of array elements
10.29 Write a program to interchange array elements of two arrays using a function.
# include <stdio.h>
# include <conio.h>
void mainO
{
int read();
void change(int*,int*);
int x,a[5],b[5];
cl
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.