Answers for "how to convert int to string in c"

12

c int to string

#include <stdio.h>

int main()
{

  char number_str[10];
  int number = 25;

  sprintf(number_str, "%d", number);
  printf("Converted to string : %s\n", number_str);
  
  return 0;

}
Posted by: Guest on March-18-2020
1

objective c convert int to string

NSString* myNewString = [NSString stringWithFormat:@"%d", myInt];
Posted by: Guest on March-03-2020
1

integer to stringc

int someInt = 368;
char str[12];
sprintf(str, "%d", someInt);
Posted by: Guest on July-27-2020

Code answers related to "how to convert int to string in c"

Code answers related to "Objective-C"

Browse Popular Code Answers by Language