The program ask the user to enter the two values, after storing the values in the pointers, it print segmentation fault and terminate.why?
// c program to add two numbers using pointers
#include <stdio.h>
int main()
{
    int *ptr1, *ptr2, sum;
    printf ("Enter the two numbers:\n");
    scanf ("%d %d", ptr1, ptr2);
    sum = *ptr1 + *ptr2;
    printf("The result is %d", sum);
    return 0;
 
    