answersLogoWhite

0

void math(int*, int*, int*, int*)

void main()

{

int a, b, c, d;

puts("ENTER VALUES TO A & B");

math(&a,&b,&c,&d);

printf("sum= %d \n diff= %d", c,d);

getch();

}

void math( int*a, int*b, int*c, int*d)

{

*c= *a+*b;

*d= *a-*b;

}

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

How do you solve an equation using addition?

Addition and subtraction are inverse operations. So you can solve addition by subtracting.


What perform a possible math operation?

By using division, multiplication, addition or subtraction


What equals 12 17 19 and 20 only using addition subtraction and division?

An infinite amount of ones. 1 + 1 + 1... + 1 / 1 / 1 / 1... = n where n is any integer


How do you make working model of maths on polynomials?

Polynomials are the simplest class of mathematical expressions. The expression is constructed from variables and constants, using only the operations of addition, subtraction, multiplication and non-negative integer exponents.


How can you use subtraction to complete an addition pattern using 3?

To complete an addition pattern using 3, you can rearrange the addition statements by using subtraction. For example, if the pattern is 3, 6, 9, you can see that each number increases by 3. To find the previous number in the sequence, you can subtract 3 from the current number: 9 - 3 = 6 and 6 - 3 = 3. This shows that subtraction can help identify the consistent step in an addition pattern.


Write down a word problem using addition and subtraction?

3-3=0


How do you get 55 without using the number five or addition or subtraction?

110 divided by 2


How can you get 500 with out using addition subtraction and 5?

505


What types of problems can be solved using LCM?

Problems involving the addition and subtraction of unlike fractions.


What equals 99 with out using 9 subtraction or addition?

33*3=99 3*33=99


How can 5 5 6 6 make 8 using addition subtraction multiplication and division?

impossible


How can you figure out 123456789 equals 100 only using addition and subtraction?

123-45-67+89??