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

Still curious? Ask our experts.

Chat with our AI personalities

RafaRafa
There's no fun in playing it safe. Why not try something a little unhinged?
Chat with Rafa
FranFran
I've made my fair share of mistakes, and if I can help you avoid a few, I'd sure like to try.
Chat with Fran
MaxineMaxine
I respect you enough to keep it real.
Chat with Maxine

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