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

MaxineMaxine
I respect you enough to keep it real.
Chat with Maxine
JordanJordan
Looking for a career mentor? I've seen my fair share of shake-ups.
Chat with Jordan
SteveSteve
Knowledge is a journey, you know? We'll get there.
Chat with Steve

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