Search
 
SCRIPT & CODE EXAMPLE
 

C

successeur ("123")

void Succ (char * ch){
    if (Dernier(ch) == '9'){
        // Debut(ch) : délivre ch privée de son dernier élément
      	Succ(Debut(ch));
      	// AjoutF(ch, c) : délivre ch à laquelle on a rajouté à la fin de ch 
        AjoutF(ch, '0');
    }else{
      	// Dernier(ch) : délivre le dernier caractère de ch
        int n = int(Dernier(ch));
        n++;
        //Carat(n) : int -- char
        AjoutF(Debut(ch), Carat(n));
    }
}
Comment

PREVIOUS NEXT
Code Example
C :: printf signed char 
C :: random in c 
C :: print ascii value in c 
C :: graphics in c 
C :: array loop in c 
C :: c concatenate strings 
C :: merge sort code c 
C :: c programming itoa() example 
C :: c fractional sleep 
C :: divide and conquer program in c 
C :: stdio 
C :: multiplication in c 
C :: how to pass an array of structs as an argument in c 
C :: c print sizeof char 
C :: add char to char array c 
C :: read a document from console in c 
C :: ruby find object in array by attribute 
C :: typescript class as function parameter 
C :: char to int in c 
C :: adding strings in the list 
C :: getchar 
C :: how to read 2d array from a file in c 
C :: Rounding Floating Point Number To two Decimal Places in C 
C :: how to return array of char in c 
C :: how to change file permissions in C language 
C :: Command to create a static library in C 
C :: binary sorting 
C :: passing pointer to function 
C :: Example of read and write project in c 
C :: address operator 
ADD CONTENT
Topic
Content
Source link
Name
9+9 =