answersLogoWhite

0


Best Answer

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

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: To find the addition and subtraction of 2 integer using call by refernce?
Write your answer...
Submit
Still have questions?
magnify glass
imp