Top "Char" questions

char typically refers to a character data-type, representing letters of text.

How to convert a char to a String?

I have a char and I need a String. How do I convert from one to the other?

java string char type-conversion
How to convert a std::string to const char* or char*?

How can I convert an std::string to a char* or a const char*?

c++ string char constants
Take a char input from the Scanner

I am trying to find a way to take a char input from the keyboard. I tried using: Scanner reader = …

java input char java.util.scanner
std::string to char*

I want to convert a std::string into a char* or char[] data type. std::string str = "string"; char* chr = …

c++ string char
How to convert/parse from String to char in java?

How do I parse a String value to a char type, in Java? I know how to do it to …

java string parsing char
How to convert a char array to a string?

Converting a C++ string to a char array is pretty straightorward using the c_str function of string and then …

c++ string char arrays
How to convert a char array back to a string?

I have a char array: char[] a = {'h', 'e', 'l', 'l', 'o', ' ', 'w', 'o', 'r', 'l', 'd'}; My …

java arrays string char
Convert int to char in java

Below is a code snippet, int a = 1; char b = (char) a; System.out.println(b); But what I get is …

java char int
C char array initialization

I'm not sure what will be in the char array after initialization in the following ways. 1.char buf[10] = ""; 2. char buf[10] = " "; 3. …

c arrays char initialization buffer
What is an unsigned char?

In C/C++, what an unsigned char is used for? How is it different from a regular char?

c++ c char