C Language : Introduction

3.14 को 2.1 से विभाजित करने के बाद शेष प्राप्त करने के लिए निम्नलिखित में से किस कथन का उपयोग किया जाना चाहिए? , Which of the following statements should be used to obtain a remainder after dividing 3.14 by 2.1 ?

Which of the following statements should be used to obtain a remainder after dividing 3.14 by 2.1 ?




Solution
C. rem = fmod(3.14, 2.1);



Explanation
fmod(x,y) - Calculates x modulo y, the remainder of x/y. This function is the same as the modulus operator. But fmod() performs floating point divisions.
CCC Online Test 2021 CCC Practice Test Hindi Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Exam Quiz Website development Company in Allahabad