#include Declaration syntax: double log(double);
Comments
Copyright ©CuriousTab. All rights reserved.Discussion
Home
‣
C Programming
‣
Floating Point Issues
See What Others Are Saying!
Which statement will you add in the following program to work it correctly?
#include<stdio.h>
int main()
{
printf("%f\n", log(36.0));
return 0;
}
Options
Explanation
More questions
Options
Correct Answer: Yes
Options
Correct Answer: No
Options
Correct Answer: False
Options
Correct Answer: True
Options
Correct Answer: False
Explanation:
Options
Correct Answer: No
Explanation:
Options
Correct Answer: Yes
Options
Correct Answer: True
Options
Correct Answer: No
#include<stdio.h>
#include<stdlib.h>
int main()
{
union test
{
int i;
float f;
char c;
};
union test *t;
t = (union test *)malloc(sizeof(union test));
t->f = 10.10f;
printf("%f", t->f);
return 0;
}
Options
Correct Answer: 10.100000
More in C Programming:
Programming