Question: The code below shows the numberofDigits function, which returns the number of digits of a given number (data type long). For example, the number 890786786690656798
The code below shows the numberofDigits function, which returns the number of digits of a given number (data type long). For example, the number 890786786690656798 has 18 number of digits, the function numberofDigits will return the number 18. Every time the function is called, another copy of the parameter passed (Long number) will be created. 2 #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
