SHARE
TWEET

Untitled

a guest Oct 14th, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void calculateScore(int noOfJudges, double judgeScores[], double *highestScore, double *lowestScore, double *averageScore){
  2.    //Pekare som parametrar i funktionen
  3.    //annan kod för att räkna ut max, min och snitt
  4.    //skickar sen tbx värdena med pekarna nedan
  5.   *highestScore = max;
  6.   *lowestScore = min;
  7.   *averageScore = average;
  8. }
  9. int main(void){
  10.   double highestScore;
  11.   calculateScore(noOfJudges, judgeScores, &highestScore, &lowestScore, &averageScore); // skickar med adresserna till variablerna i main
  12.   return 0;
  13. }
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top