#include // // CS61C, Project 2, Fall 2006 // Student Name: // Student ID: // Section: // TA: // void fp(unsigned int f) { // Your code goes here. // This function should print the appropriate string. // (You may find it useful to add a decimalToBinary method) } int main() { fp(0x34554342); printf(" should be: 1.10101010100001101000010b2^(-23)\n"); fp(0xffff0000); printf(" should be: -NaN\n"); fp(0x7f800000); printf(" should be: infinity\n"); fp(0x00100000); printf(" should be: denorm\n"); fp(0x80000000); printf(" should be: -0\n"); return 0; }