Answers for "c char to unsigned char"

C
2

how to represent unsigned char with % c

#include<stdio. h>
int main(int argc, char *argv[]) {
signed char char1=255;
unsigned char char2=255;
printf("Signed char : %d\n",char1);
printf("Unsigned char : %d\n",char2);
}
Posted by: Guest on May-22-2020
0

unsigned char c programming

unsigned char ch = 'a';
//unsigned char is a character datatype where the variable consumes 
all the 8 bits of the memory and there is no sign bit (which is there in signed char).
So it means that the range of unsigned char data type ranges from 0 to 255.
Posted by: Guest on April-02-2022

Code answers related to "C"

Browse Popular Code Answers by Language