Type-casting style of CPP - C++ basic concepts - per = total/float(m)

Q.  Which of the following is CPP style type-casting?
- Published on 17 Jul 15

a. per = total/(float)m
b. per = total/float(m)
c. per = (float)total/m
d. None of these

ANSWER: per = total/float(m)

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)