daily pastebin goal
50%
SHARE
TWEET

Untitled

a guest Dec 17th, 2018 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void func_Add(double *result)
  2. {
  3.     double arg1 = 0;
  4.     double arg2 = 0;
  5.  
  6.     prepearData(&arg1, &arg2);
  7.     printf("nEntered arguments: %lf and %lfn", arg1, arg2);
  8.     *result = arg1 + arg2;
  9.     printf(">>Addition result: %lf n", *result);
  10. }
  11.    
  12. void prepearData(double *arg1, double *arg2)
  13. {
  14.         printf(">> Enter FIRST argument:");
  15.         scanf("%lf", &arg1);
  16.         printf(">> Enter SECOND argument:");
  17.         scanf("%lf", &arg2);
  18.         printf("prepearData: %lf and %lfn", arg1, arg2);
  19. }
  20.    
  21. void prepearData(double *arg1, double *arg2)
  22. {
  23.         printf(">> Enter FIRST argument:");
  24.         scanf("%lf", arg1);
  25.         printf(">> Enter SECOND argument:");
  26.         scanf("%lf", arg2);
  27.         printf("prepearData: %lf and %lfn", *arg1, *arg2);
  28. }
  29.    
  30. scanf("%lf", arg1);
  31. . . .
  32. printf("prepearData: %lf and %lfn", *arg1, *arg2);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top