C MCQ set number 00692

1. Comment on the output of this C code? #include <stdio.h> int main() { float f1 = 0.1; if (f1 == 0.1) printf(”equaln”); else printf(”not equaln”); } a) equal b) not equal c) output depends on compiler d) none of the mentioned AnswerAnswer: b [Reason:] 0.1 by default is of type double which has different…


This content is for paid premium members only.
You can view complete answer after activation your membership.


Need only one answers. Simply buy single day pass and email. We will send answers for this question.
Login Buy membership