/*Write a function called add_two() It will receive three pointers to floats
It will add the numbers pointed to by the first two pointers and store their
sum in the location pointed to by the third pointer. In main(), define j,k, and
m Scan in j and k, send their addresses to add_two(), and have main() print
the address of m and its value that is in it from add_two().*/
#include <stdio.h>
void add_two (float*,float*,float*);
void main (void)
{
float j,k,m;
printf("Enter a integer for j and k: ");
scanf("%d %d",&j,&k);
add_two(&j,&k,&m);
printf("%p %d",&m,m);
scanf("%d",&k);
}
void add_two(float *a,float *b,float *c)
{
*c = *a + *b;
getchar();
}