Advertisement
Guest User

Untitled

a guest
Mar 24th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. #include <stdio.h>
  2. #include<stdlib.h>
  3.  
  4. void main()
  5. {
  6. double phi_hat, up, p ,d;
  7. double *phi_up, *phi_p, *phi_d;
  8.  
  9. phi_up= &up;
  10. phi_p = &p;
  11. phi_d = &d;
  12. printf("\nInput variables up p d\n");
  13. scanf("%f, %f, %f",&up,&p,&d);
  14.  
  15. printf("%f %f %f",*phi_up,*phi_p,*phi_d); \\WHY gives me garbage?
  16. printf("\n%f %f %f",up,p,d); \\WHY gives me garbage?
  17.  
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement