answersLogoWhite

0


Best Answer

The char data type is a single 16-bit, unsigned Unicode character. It ranges from 0 to 65,535. They are not integral data type like int, short etc. i.e. the char data type can't hold the numeric values. The syntax of declaring a char type variable is shown as:

char caps = 'c';

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How char data type is represented in the memory?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is size of char far data type?

char is a primitive data type and depends on the programming language and the operating system.


Why is char often treated as integer data type?

The char data type is an integral type and can therefore be used to represent integers as well as characters. However, in order to treat the representation as an actual integer, it must be explicitly converted to a non-character type, such as int.


How can you allocate memory dynamically in c?

char* new_string; // could be any type new_string = (char*) malloc (5120); // allocate memory - typecast is necessary if (new_string == NULL) ... memory exception ... ... use the data ... free (new_string); // release memory when done


Which data type will you use to store names of 100 students?

char data type


What is the different type of data type in c classified it?

float,int,char


Which data type is used in order to fetch stream of data from network or file?

char


Where string is primitive data type of string data type?

String is not primitive data. Only char,int,double,and boolean are!


Is The controlling expression for a switch statement can be a char?

char is actually integer, even so they are represented with letters. Anyway, yes you can use the controlling expression of type char in switch statements.


How do you convert char array into unsigned char array in c?

You can't convert the data type of any variable.


What is data type of md5 output in C?

unsigned char [16]


What is meant by signed char?

A data-type that holds values from -128 to 127.


What is the data type of 5?

int, but can be assigned to a short, long or char as well