Make a program which takes in a whole number in the range 0 – 2147483647 and output the binary bit pattern for each of the following case:
1. 32 bits: if the input number is stored as int.
2. 32 bits: if the input number is stored as float.
3. 64 bits: if the input number is stored as double.
Look up the following web page to know details of double.
http://en.wikipedia.org/wiki/Double_precision_floating-point_format

<email removed>

Wow another on posting a homework assignment...Please read the forum rules about posting homework assignments.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.