Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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;
}
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Programming With Visual Basic .NET

Authors: Carsten Thomsen

2nd Edition

1590590325, 978-1590590324

More Books

Students also viewed these Databases questions

Question

=+9-4 Describe how neurotransmitters influence behavior,?

Answered: 1 week ago