[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 478
  • Last Modified:

Char to int..

Is it a way to convert to char from an integer??
0
marcoo
Asked:
marcoo
  • 2
1 Solution
 
deightonCommented:
cVal = (char) intVal;
0
 
deightonCommented:
or if you want an int to be held in a string of chars


char number[6];
int ival;

ival = 22000;
sprintf(number,"%i",ival);
0
 
marcooAuthor Commented:
I couldn't get example one to work but the other worked just fine.
0

Featured Post

Free tool for managing users' photos in Office 365

Easily upload multiple users’ photos to Office 365. Manage them with an intuitive GUI and use handy built-in cropping and resizing options. Link photos with users based on Azure AD attributes. Free tool!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now