Search
 
SCRIPT & CODE EXAMPLE
 

C

fonction recursive successeur nombre chaine de caractere en c

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 :: Succ de ch 
C :: printf signed char 
C :: #![feature]` may not be used on the // stable release channel 
C :: multiplication of two matrix in c 
C :: armstrong number using function in c 
C :: C how to find substring in string 
C :: remove first character from string c 
C :: how to print a file c 
C :: c number to string 
C :: printf type format 
C :: tkinter create_line 
C :: arduino millis 
C :: c read csv 
C :: install gnome tweaks ubuntu 20.04 
C :: initialize array in c with 0 
C :: gcc options to find out makefiel rules 
C :: initialize array c 
C :: prime number c program 
C :: c read file content 
C :: ft_putchar 
C :: fgets c 
C :: c bits 
C :: how to input n space separated integers in c 
C :: transfer function exponent matlab 
C :: c language 
C :: boolean input in c 
C :: tuples in c 
C :: Multi-line Comments in C 
C :: realloc in c 
C :: c sjf 
ADD CONTENT
Topic
Content
Source link
Name
2+9 =