Top "Char" questions

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

Getting an ASCII character code in Ruby using `?` (question mark) fails

I'm in a situation where I need the ASCII value of a character (for Project Euler question #22, if you want …

ruby char ascii
Understanding the difference between null and '\u000' in Java

I read in a book (Thinking in Java by Bruce Eckel, 4th edition, page 47) that null is equal to '\…

java null char
How to count the number of times a character appears in a SQL column?

For a user logging table I have in a SQL database, I track the some of the parameters off of …

sql tsql char
Convert char* to wchar* in C

I would like to convert a char* string to a wchar* string in C. I have found many answers, but …

c unicode char wchar
What is the correct way to compare char ignoring case?

I'm wondering what the correct way to compare two characters ignoring case that will work for all cultures. Also, is …

c# .net string comparison char
Convert CString to character array?

How to convert CString in MFC to char[] (character array)

c++ visual-c++ char cstring
How many chars can be in a char array?

#define HUGE_NUMBER ??? char string[HUGE_NUMBER]; do_something_with_the_string(string); I was wondering what would be the …

c arrays memory char buffer
how to convert char array to wchar_t array?

char cmd[40]; driver = FuncGetDrive(driver); sprintf_s(cmd, "%c:\\test.exe", driver); I cannot use cmd in sei.lpFile = cmad; …

c++ arrays char wchar-t
strcmp or string::compare?

I want to compare two strings. Is it possible with strcmp? (I tried and it does not seem to work). …

c++ c string char string-comparison
How to check the last char of a string and see its a blank space

How to check the last char of a string and see its a blank space? If its a blank space …

c# asp.net string char lastindexof