Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. trackSize = sectorSize * sectorsPerTrack;
  2. fprintf(stdout, "\ntemp: %d\n", sectorSize);
  3. //the above prints out 512
  4.  
  5. fprintf(stdout, "\ntemp: %d\n", sectorsPerTrack);
  6. //the above prints out 1000
  7.  
  8. fprintf(stdout, "\ntemp2: %f\n", trackSize);
  9. // 0.00000
  10. fprintf(stdout, "\ntemp2: %d\n", trackSize);
  11. // 0
  12.  
  13.  
  14. // this prints out the right answer
  15. double temp = 512;
  16. double temp2 = 1000;
  17. double temp3 = temp * temp2;
  18. fprintf(stdout, "\ntemp3: %f\n", temp3);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement