Introducing Radical.sh

Forget Code launches a powerful code generator for building API's

Addition of 2 numbers with pointers concept in C

#include<stdio.h>
 
main()
{
   int first, second, *p, *q, sum;
 
   printf("Enter two integers to add\n");
   scanf("%d%d", &first, &second);
 
   p = &first;
   q = &second;
 
   sum = *p + *q;
 
   printf("Sum of 2 numbers = %d\n",sum);
 
   return 0;
}