#include <stdio.h>
#include <limits.h>
#include <float.h>

int main(){
	
	int x = INT_MAX;
	printf("\nint x = %d\n", x);
	float f = FLT_MAX;
	printf("float = %f\n", f);
	double d = DBL_MAX; // The range of allowable values grows exponentially for floating point numbers as the number of bits increases
	printf("double d = %f\n", d);
	printf("A. (int)(double) x is %d\n", (int)(double)x);

	printf("B. (int)(float) x is %d\n", (int)(float)x);

	printf("C. (double)(float) d is %f\n", (double)(float)d);

	printf("D. (float)(double) f is %f\n", (float)(double)f);
	printf("E. -(-f) is %f\n", -(-f));
	printf("F. 1.0/2 is %f and 1/2.0 is %f\n", 1.0/2, 1/2.0);
	printf("G. d*d = %f\n", d*d);
	printf("H. (f+d)-f = %f\n",  (f+d)-f);


}
