Langage c

martial -  
WillyInfo Messages postés 2 Statut Membre -
Bonjour,
j'aimerais convertir un entier en chaine et vice versa

A voir également:

1 réponse

WillyInfo Messages postés 2 Statut Membre
 
//Include LibC
#include <stdio.h>
#include <stdlib.h>

//Entier
Int Val=0;
//Chaîne de caractère
char buffer[MAZSIZE];

//Convert to Int
i=atoi("chaine a convertir");

//Convert to String
itoa(i,buffer,10);
0