Multiple choice technology programming languages

main() { float me = 1.1; double you = 1.1; if(me==you) printf("I Don't Know C"); else printf("I Know C"); }

  1. I Know C

  2. I Don't Know C

  3. Compilation error

  4. None

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

When comparing float (1.1) with double (1.1), precision differs. float 1.1 is stored as 1.10000002384185791016, double 1.1 is 1.10000000000000008882. They are NOT equal. Thus the else branch executes, printing 'I Know C'. This demonstrates floating-point precision differences between types.