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.

Write a ‘C’ program to calculate the electricity bill using if..elseif, as per the following details

c) Write a ‘C’ program to calculate the electricity bill using if..elseif, as per the following
details
* Given the number of units consumed, unit charges are as follows:
i) For first 50 units Rs. 0.50/unit
ii) For next 100 units Rs. 0.75/unit
iii) For next 100 units Rs. 1.20/unit
iv) For unit above 250 Rs. 1.50/unit
* Add fuel surcharge 20% and Govt. Tax 10% on bill to calculate the total bill.