What will you do to treat the constant 3.14 as a float?

Review the verified answer and explanation for this DemoPaper-Pakistan past-paper question on CampusFin.

What will you do to treat the constant 3.14 as a float? Answer: use 3.14f

Given 3.14 is a double constant. To specify 3.14 as float, we have to add f to the 3.14. (i.e 3.14f)

Question context

This question is part of 💡 C Programming within the broader 💻 Programming subject and appears in the DemoPaper-Pakistan preparation collection. Reviewing the answer together with nearby questions helps reinforce the underlying concept and identify how it may appear in competitive exams.