Posts by datway skrt • 9 points
2 posts
-
-1
votes3
answers5789
viewsA: Check whether a date is valid in C or not?
Function to validate a date in the format dd/mm/yy: The string containing the date will have a fixed size whenever it is 11 counting with the control character ' 0', all that needs to be done is to…
-
1
votes6
answers6260
viewsA: How to determine if a number is power 2?
i created a c++ function that checks if a number is power 2 using base 2 logarithms. EXPLANATION: the logarithm is calculated in base 2 of the given number and all we have to do is check if the…