#include<stdio. h>
int main(int argc, char *argv[]) {
signed char char1=255;
unsigned char char2=255;
printf("Signed char : %d
",char1);
printf("Unsigned char : %d
",char2);
}
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.
Code Example |
---|
C :: Area of a Circle in C Programming |
C :: multiplication table in c using array |
C :: Syntax To Take Input In C |
C :: c program to print the multiplication table |
C :: strcmp c |
C :: factorial of a number in c |
C :: append to list in c |
C :: how to delete virtual hard disk virtualbox |
C :: arduino wifi client |
C :: how to get the ascii value of a character in c |
C :: #define arduino |
C :: search in gz file |
C :: functions in c |
C :: c zero out array |
C :: c find last element in array |
C :: declare variables arduino |
C :: addition of matrix |
C :: Installing Tailwind |
C :: hourglass sum |
C :: absolute value of intel intrinsic |
C :: c memcpy |
C :: algorithm for dequeue |
C :: scan c |
C :: check for duplicates c |
C :: how to declare a struct in c |
C :: fungetc |
C :: data-types |
C :: semicolong after for() loop stackoverflow |
C :: Battlefield4u.com |
C :: minimun number of moves in c |