MCQOPTIONS
Bookmark
Saved Bookmarks
→
C Programming
→
Floating Point Issues in C Programming
→
What will you do to treat the constant 3.14 as a ?..
1.
What will you do to treat the constant 3.14 as a ?
A.
use 3.14LD
B.
use 3.14L
C.
use 3.14DL
D.
use 3.14LF
Answer» C. use 3.14DL
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
Will the statement print the same values for any values of ?
A occupies 4 bytes. If the hexadecimal equivalent of these 4 bytes are A, B, C and D, then when this is stored in memory in which of the following order do these bytes gets stored?
We want to round off , a , to an value, The correct way to do is
What will you do to treat the constant 3.14 as a ?
Point out the error in the following program. #include<stdio.h> int main() { struct emp { char name[20]; float sal; }; struct emp e[10]; int i; for(i=0; i<=9; i++) scanf("%s %f", e[i].name, &e[i].sal); return 0; }
What will be the output of the program?_x000D_ #include<stdio.h>_x000D_ #include<math.h>_x000D_ int main()_x000D_ {_x000D_ float n=1.54;_x000D_ printf("%f, %f\n", ceil(n), floor(n));_x000D_ return 0;_x000D_ }
Will the printf() statement print the same values for any values of a? #include<stdio.h> int main() { float a; scanf("%f", &a); printf("%f\n", a+a+a); printf("%f\n", 3*a); return 0; }
What will be the output of the program?_x000D_ #include<stdio.h>_x000D_ #include<math.h>_x000D_ int main()_x000D_ {_x000D_ printf("%f\n", sqrt(36.0));_x000D_ return 0;_x000D_ }
What will be the output of the program?_x000D_ #include<stdio.h>_x000D_ int main()_x000D_ {_x000D_ float a=0.7;_x000D_ if(a < 0.7)_x000D_ printf("C\n");_x000D_ else_x000D_ printf("C++\n");_x000D_ return 0;_x000D_ }
What will be the output of the program?_x000D_ #include<stdio.h>_x000D_ int main()_x000D_ {_x000D_ float a=0.7;_x000D_ if(a < 0.7f)_x000D_ printf("C\n");_x000D_ else_x000D_ printf("C++\n");_x000D_ return 0;_x000D_ }
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply