Consider outline of ‘C’ program given below:

c) Consider outline of ‘C’ program given below:
#Include suitable header files
void main()
{
suitable prototype of function interchange()
int a=10, b=20;
interchange(&a,&b);
printf(“a=%d b=%d”,a,b)
}
The function interchange() interchanges the values of the variables supplied to it. So the
output of the program is
a=20 b=10
Write suitable interchange() function. Also fill in the gaps of this program so that it
produces the desired output.


Leave a Reply