title: C language pointer
body: <p>Write a program that uses two pointer variables to read two double numbers and display the absolute value of their sum?</p>
  
  <p>this is my code and I don not know where it gets wrong:</p>
  
  <pre><code>int main(void)
  {
      double *p1,*p2, val1,val2;
      p1 = &amp;val1;
      p2 = &amp;val2,
      printf("Enter  two number: ");
      scanf("%f %f", p1,p2);
      if(*p1+*p2 &gt;= 0)
      printf("%f\n", *p1+*p2);
      else
      printf("%f\n", -(*p1+*p2));
      return 0;
  }
  </code></pre>