Top "Char" questions

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

cannot convert 'const char*' to 'LPCWSTR {aka const wchar_t*}'

I'm getting an error in my C++ code that I can't quite make sense of. The stripped down code bits …

c++ qt char type-conversion wchar-t
Preferred conversion from char (not char*) to std::string

I have a char, a plain old character, that I would like to turn into an std::string. std::string(…

c++ string char type-conversion
In C Left shift (char) 0xFF by 8 and cast it to int

On left shift of (char) 0xff by 8 and casting it to int we get -256 or 0xffffff00. Can somebody explain …

c char signed shift
Should a buffer of bytes be signed or unsigned char buffer?

Should a buffer of bytes be signed char or unsigned char or simply a char buffer? Any differences between C …

c++ c char buffer
java printing char array

I am running this code and char[] str = { 'a', 'b', 'c', 0, 'c', 'c', 'f' }; System.out.print(str); System.out.…

java char system.out
Invalid conversion from unsigned char* to char*

Here is a code - 1 int main(int argc, char *argv[]) 2 { 3 signed char S, *psc; 4 unsigned char U, *pusc; 5 char …

c++ char signed unsigned-char
Get the char on Control.KeyDown?

When handling Control.OnKeyPress event, there is a KeyPressEventArgs that contains a KeyChar. For usability reasons I need exactly the …

c# .net controls char keydown
How to print unsigned char* in NSLog()

Title pretty much says everything. would like to print (NOT in decimal), but in unsigned char value (HEX). example unsigned …

objective-c c char unsigned nslog
Reading character with scanf()

This code is for game of craps. #include <stdio.h> #include <stdlib.h> #include <stdbool.…

c char scanf specifier
Which is faster: char(1) or tinyint(1) ? Why?

MY PLATFORM: PHP & mySQL MY SITUATION: I came across a situation where I need to store a value for …

mysql char tinyint