Question: Code given in C Language to solve: #include ex 1 . h void update ( int * a , int * b )

Code given in C Language to solve:
#include "ex1.h"
void update(int* a,int* b)
{
int temp=*a;
*a=(*a+*b);
if(*b>temp)
{
*b=*b-temp;
}
else
{
*b=temp-(*b);
}
}
int main()
{
int a,b;
scanf("%d",&a);
scanf("%d",&b);
update(&a,&b);
printf("%d
%d
",a,b);
return 0;
}
 Code given in C Language to solve: #include "ex1.h" void update(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!