This preview shows page 1. Sign up to view the full content.
Unformatted text preview: printf("\nPress 0 to add more"); scanf("%d",&z); i++; }while(z==0); fseek(stream, SEEK_SET, 0); // fprintf(stream, "\nId:%d \nName:%s ",s.id,s.name); / fread(&q, sizeof(s), 1, stream); for(j=i;j>0;j--) printf("\nID:%d \nNAME:%s",q[j].id,q[j].name); fclose(stream); getch(); }...
View Full Document
This note was uploaded on 10/25/2010 for the course CMPN SEM3 taught by Professor Thakur during the Fall '07 term at University of Mumbai.
- Fall '07