answersLogoWhite

0

What is meant by char?

Updated: 8/17/2019
User Avatar

Wiki User

8y ago

Best Answer

In C and C++, a char is a primitive data type with length 1 byte. It is guaranteed to represent all integers in the closed range [0:127]. As such, it is guaranteed to represent all character codes used by the language itself, hence it is called a char (short for character).

User Avatar

Wiki User

8y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is meant by char?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is meant by unsigned char?

AnswerAn unsigned char is a byte; its value can be between 0 and (2^8) - 1 (i.e., 0-255).


What is meant by signed char?

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


Is char a identical to char a?

'char a' and 'char a' are identical.


What is meant by a mandatory field?

a mandatory field in a database is one created in a table as "Not null". This means, there is a "rule" on the field that when data is inserted into the table, this field cannot be empty. If it is, then the insert errors. Here's part of a table definition in my database. These field are are required to be populated when inserting into this table. ATTR_DESC_01 CHAR(2) DEFAULT SYSTEM NOT NULL, ATTR_DESC_02 CHAR(2) DEFAULT SYSTEM NOT NULL, ATTR_DESC_03 CHAR(2) DEFAULT SYSTEM NOT NULL, ATTR_DESC_04 CHAR(2) DEFAULT SYSTEM NOT NULL, ATTR_DESC_05 CHAR(2) DEFAULT SYSTEM NOT NULL, ATTR_DESC_06 CHAR(2) DEFAULT SYSTEM NOT NULL, ATTR_DESC_07 CHAR(2) DEFAULT SYSTEM NOT NULL, ATTR_DESC_08 CHAR(2) DEFAULT SYSTEM NOT NULL, ATTR_DESC_09 CHAR(2) DEFAULT SYSTEM NOT NULL, ATTR_DESC_10 CHAR(2) DEFAULT SYSTEM NOT NULL, PARTITION_NBR SMALLINT NO DEFAULT NOT NULL)


Are the three declaration char a char a and char c same?

Yes.


What is the abbreviation of Charleston?

char or you can say char harbor as in the harbor of char


What has the author char written?

char. has written: 'char occasional papers-6 resettlement units the future'


How do you apply if in char type in c plus plus?

char x = "C"; if(char == 'C') { } else { }


Which stone is Char Minar made of?

char minar


How is an identifier defined as a char type?

char indentifier_name;


Program to copy one string to another?

As usual, you should check official documentation before you ask a question like this. string.h // Copies num characters from source into destination. char* strncpy (char* destination, const char* source, size_t num); // Copies characters from source into destination. char* strcpy (char* destination, const char* source);


What is arctic char?

An arctic char is an alternative name for the saibling, a member of the char family of fish native to Europe.