Recall what the name is an address of the 1st element

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: t;The mean is %.2f.\n", mean); printf("The standard deviation is %.2f.\n", st_dev); /* Displays the difference between each item and the mean */ printf("\nTable of differences between data values and mean\n"); printf("Index Item Difference\n"); for (i = 0; i < MAX_ITEM; ++i) printf("%3d%4c%9.2f%5c%9.2f\n", i, ' ', x[i], ' ', x[i] - mean); } return (0); 19 Enter 8 numbers separated by blanks > 16 12 6 8 2.5 12 14 -54.5 The mean is 2.00. The standard deviation is 21.75. Table of differences between data values and mean Index Item Difference 0 16.00 14.00 1 12.00 10.00 2 6.00 4.00 3 8.00 6.00 4 2.50 0.50 5 12.00 10.00 6 14.00 12.00 7 -54.50 -56.50 20 Arrays and Func4ons • An en4re array can be passed into a func4on by using the...
View Full Document

This document was uploaded on 03/10/2014 for the course ENGINEER 2sh4 at McMaster University.

Ask a homework question - tutors are online