Search
 
SCRIPT & CODE EXAMPLE
 

C

c recursion func revers number

int ReversNum(int num)
{
    if(num % 10 == num) return num;
    
    int tenP = 10;
    while(num % (tenP*10) != num) tenP *= 10;
    
    return rReversNum( num / 10) + (num % 10)*tenP;
}
Comment

PREVIOUS NEXT
Code Example
C :: typescript class as function parameter 
C :: malloc c include 
C :: #define arduino 
C :: c read file 
C :: Grepper VSCode Add On 
C :: ** in c 
C :: lateinit kotlin 
C :: signal function c 
C :: memory layout in c 
C :: delete string function in c 
C :: malloc basics 
C :: c bubble sort 
C :: addition of matrix 
C :: int data types in c 
C :: create node in c 
C :: char ASCII in c 
C :: search sorted array c 
C :: c program to find minimum of 5 numbers using conditional operator in c 
C :: esp32 dhcp server 
C :: define constant c 
C :: passing pointer to function 
C :: boolean operators in c++ 
C :: convert python to c 
C :: Number 10 
C :: C static libraries (Indexing an archive) 
C :: C Character l/O 
C :: %s and string pointer 
C :: set all pins as input for loop 
C :: injection 
C :: send array through a pipe 
ADD CONTENT
Topic
Content
Source link
Name
1+1 =