Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- trackSize = sectorSize * sectorsPerTrack;
- fprintf(stdout, "\ntemp: %d\n", sectorSize);
- //the above prints out 512
- fprintf(stdout, "\ntemp: %d\n", sectorsPerTrack);
- //the above prints out 1000
- fprintf(stdout, "\ntemp2: %f\n", trackSize);
- // 0.00000
- fprintf(stdout, "\ntemp2: %d\n", trackSize);
- // 0
- // this prints out the right answer
- double temp = 512;
- double temp2 = 1000;
- double temp3 = temp * temp2;
- fprintf(stdout, "\ntemp3: %f\n", temp3);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement