Solve This (? + ? + ?=30)
If 1111=R, 2222=T, 3333=E, 4444=N Then 5555=?
Guess the Hindi Muhawara from the following whatsapp Emoticons?
Sweet, Medicine, Film, Girl, City, Car, Place, Doggy all are name same, guess which word it is?
A girl is blind, deaf, dumb and uneducated too. A boy loves her. How would he propose without touching her?
Four Question, One Answer: One River Name, One Flower Name, One Film Name, One Actress Name?
Guess me who am I, I am the first on earth, the second in heaven...
Which Indian cricketer is known as "Brown Bradman"?
What is the only Star Wars film in which Harrison Ford receives top billing?
How many world records did swimmer Mark Spitz set when he won seven gold medals at the 1972 Olympics?
int compareFloats(float f1, float f2)
char *b1, *b2;
b1 = (char *)&f1;
b2 = (char *)&f2;
/* Assuming sizeof(float) is 4 bytes) */
for (i = 0; i < 4; i++, b1++, b2++)
if (*b1 != *b2)
return(NOT_EQUAL); /* You must have defined this before */
You can easily compare floats or any other data types variable by using memcmp() .
int float_cmp(float *f1, float *f2)
return memcmp((void *)f1, (void *)f2, sizeof(float));
Using fprintf() print a single floating point number right-justified in a field of 20 spaces, no leading zeros, and 4 decimal places. The destination should be stderr and the variable is called num.
Write a routine to draw a circle (x ** 2 + y ** 2 = r ** 2) without making use of any floating point computations at all ??
Forgot Your Password?
2018 © Queryhome