Labels:book | crt screen | daybook | reckoner OCR: 582 Chapter 10 Input and Output POSTCONDITION: Reads single transaction from the file associ iated with fp and stores the structure po inted to by trans ptr int mai in( void struct trans transact, FILE fp; fopen( "transact" "r" ) NULL prin Tr ansaction file coul lan be opened \n" ); exit while read trans( &tx ransact, Ep Note 1 print trans( &transact fc. return [] read trans int read trans struct trans *trans _ptr, FILE int retval; Note 2 retval fread trans ptr, sizeof( *trans ptr ,1, return retval print trans void print trans struct trans *outtrans Cleared field outtrans >C learea printf( "C else printf Transacti ion type outtrans-> type ==D outtrans ->t type outtrans->t type printf( 4 outtrans ->+ type else printf n34d outtrans ->t type main couldn fclose rans outt