How to convert integer into character in C language?

August 25th, 2009 by aimslife Leave a reply »

Although windows have “itoa” function but I did not find it in Linux. That time, I did Google and found a beautiful function for conversion of integer value into character string. Sample code is given below,

#include <stdio.h>

void main()
{
  char fun[80];
  int value = 1943743;
  sprintf(fun, "%d", value);
}

Enjoy and say AHO!

Advertisement

Leave a Reply