0

Is there any program in c where you can convert the int to char for ex. 5 - b if there is can you give me a sample thanks :)

2nd May 2018, 2:40 AM
Rise
Rise - avatar
2 Respostas
+ 1
type casting: eg: int a=65 char b = char(a); <- type casting //output : b= 'A' eg 2: char b='a'; int c = 1 + int(b); <- typecasting //output : c = 66
2nd May 2018, 3:28 AM
‎ ‏‏‎Anonymous Guy
0
I don't know of any c library function that converts specific int to char. But you could make one very easily according to your need.
2nd May 2018, 2:44 AM
Akib
Akib - avatar