LogiQuest
Back to Floating Point Issues
1

What will be the output of the program?

#include <stdio.h>

int main(void) {
    float a = 0.1f;
    if (a == 0.1)
        printf("equal\n");
    else
        printf("not equal\n");
    return 0;
}
Hard

Discussion (0)

  • No discussion yet. Ask a doubt or share a shortcut.

Log in to join the discussion.