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);
}
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);
}
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.
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us