MCQOPTIONS
Bookmark
Saved Bookmarks
→
C Programming
→
Floating Point Issues in C Programming
→
Will the statement print the same values for any ..
1.
Will the statement print the same values for any values of ?
A.
Yes
B.
No
Answer» B. No
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