Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdlib.h>
- #include <stdio.h>
- #include <string.h>
- const int longueur = 4;
- const char *charset[16]={"0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"};
- int main(void){
- char *chaine = malloc((longueur+1)*sizeof(char));
- /*C'est ici que l'on commence a s'amuser*/
- int position = 0;
- chaine="0000";
- int j;
- while(position < longueur)
- {
- for (j=1;j<16;j++) {
- chaine[position] = *charset[j];
- printf("%s\n", chaine);
- };
- position++;
- };
- return(0);
- }
Add Comment
Please, Sign In to add comment