Home / C Programming / Floating Point Issues :: Discussion

Discussion :: Floating Point Issues

  1. What will you do to treat the constant 3.14 as a long double?

  2. A.
    use 3.14LD
    B.
    use 3.14L
    C.
    use 3.14DL
    D.
    use 3.14LF

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    Given 3.14 is a double constant.

    To specify 3.14 as long double, we have to add L to the 3.14. (i.e 3.14L)


Be The First To Comment