home *** CD-ROM | disk | FTP | other *** search
/ C by Discovery (4th Edition) / C_By_Discovery_4th_Edition.tar / C_By_Discovery_4th_Edition / CH_04 / 255.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-12  |  576KB  |  2550x3300
Labels: book | crt screen | reckoner
OCR: Pointers and Dynamic Memory Allocation 255 4.10 n be figu- Header Files tincl lude lude <stdio <stdlib h> n> Note 1 #incl Funct ion Protot types void intro( void ) PRECOND ITION: none POSTCONDITION: announces the purpose of the program void input rolls( int *arrayptr, int num YV for num ints PRECONDITI NOI arrayptr poi ints to POSTCONDITION arrayptr has been populated with input from the terminal ndicat ing the results of each roll void cal lculate and display( int *array, int num with ) the PRECONDIT NOI array contains num elements results of num tosses here POSTCONDITION: the frequency of each possible outcome screen has been displayed on the int main( void int arrayptr, int num rolls; intro() cate vith pri intf "HOW many times did you roll the die? scanf( "gan &num roils Note 2 ir array ...