Advertisements
Advertisements
प्रश्न
Why is char often treated as an integer data type?
उत्तर
Character data type accepts and returns all valid ASCII characters. The character data type is often said to be an integer type since all the characters are represented in memory by their associated ASCII Codes. If a variable is declared as char, C++ allows storing either a character or an integer value.
APPEARS IN
संबंधित प्रश्न
Why is the main function special?
Which of the following data types is not a fundamental type?
Which of the following operator returns the size of the data type?
Mention the different types of data that you deal with while browsing the Internet.
Categorize the following data as structured, semi-structured, and unstructured:
Newspaper
Categorize the following data as structured, semi-structured, and unstructured:
Cricket Match Score
Categorize the following data as structured, semi-structured, and unstructured:
HTML Page
Categorize the following data as structured, semi-structured, and unstructured:
Patient records in a hospital
The number of bits occupied by the value 'a' is ______.
Primitive data types are built in data types which are a part of the wrapper classes. These wrapper classes are encapsulated in the java.lang package. Non primitive datatypes like Scanner class are a part of the utility package for which an object needs to be created.
- To which package the Character and Boolean classes belong?
- Write the statement to access the Scanner class in the program.