How to convert unsigned char to char in C

1 Answer

0 votes
#include <stdio.h> 

int main(void) 
{ 
	unsigned char uch= 121;
	char ch = (char)uch;
	
	printf("%c\n", ch);
	
    return 0; 
} 
  
  
  
/*
run:
  
y

*/

 



answered Aug 9, 2019 by avibootz

Related questions

2 answers 312 views
312 views asked Aug 3, 2020 by avibootz
1 answer 219 views
219 views asked Aug 10, 2019 by avibootz
1 answer 194 views
194 views asked Aug 9, 2019 by avibootz
1 answer 171 views
2 answers 570 views
570 views asked Aug 8, 2019 by avibootz
2 answers 183 views
...