Write a program in C to sum of two integer numbers ?
program no :41
purpose : sum of two integer numbers using dynamic allocation
#include <"stdio.h">
#include <"conio.h">
#include <"stdlib.h">
void main()
{
int *p1, *p2, *sum;
p1=(int *) malloc(1* sizeof(int));
p2=(int *) malloc(1* sizeof(int));
sum=(int *) malloc(1* sizeof(int));
printf("Enter numbers..\n");
scanf("%d%d", p1,p2);
*sum=*p1 + *p2 ;
printf("\nsum.. : %d \n", *sum);
getch();
}