Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

num to string in c

int num = 321;
char snum[5];

// convert num to string and save in string snum
itoa(num, snum, 10);

// print our string
printf("%s
", snum);
Source by stackhttps #
 
PREVIOUS NEXT
Tagged: #num #string
ADD COMMENT
Topic
Name
7+3 =