Top "Char" questions

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

Java String/Char charAt() Comparison

I have seen various comparisons that you can do with the charAt() method. However, I can't really understand a few …

java char comparison charat
How can I overwrite an array of chars (AKA a string), with a new array of chars in C?

int main(void) { ... char A[32] = "00000000000000001111111111111110"; ... A = "11111111111111111111111111111111"; } This is erroneous c-code for what I want to do. I want the string …

c arrays char incompatibletypeerror
Why must a pointer to a char array need strcpy to assign characters to its array and double quotes assignment will not work?

The first example does not work when you go to delete the pointer. The program either hangs when I add …

c++ arrays string char strcpy
How do I convert from _TCHAR * to char * when using C++ variable-length args?

We need to pass a format _TCHAR * string, and a number of char * strings into a function with variable-length args: …

c++ char tchar
Why are C character literals ints instead of chars?

In C++, sizeof('a') == sizeof(char) == 1. This makes intuitive sense, since 'a' is a character literal, and sizeof(char) == 1 as …

c++ c char sizeof
Convert integer to be used in strcat

I'm trying to open different files by having a for loop increment a counter, then appending that counter to the …

c casting char strcat
NASM Assembly convert input to integer?

Ok, so I'm fairly new to assembly, infact, I'm very new to assembly. I wrote a piece of code which …

assembly x86 char nasm atoi
What is the C# equivalent of ChrW(e.KeyCode)?

In VB.NET 2008, I used the following statement: MyKeyChr = ChrW(e.KeyCode) Now I want to convert the above statement …

c# vb.net char keycode vb.net-to-c#
Java - char, int conversions

In Java, the following is allowed: char c = 'A' + 1; Here, c will hold the value 'B'. Above, first the expression …

java char type-conversion int variable-assignment
Shifting a String in C#

static void Main(string[] args) { string s = "ABCDEFGH"; string newS = ShiftString(s); Console.WriteLine(newS); } public static string ShiftString(string …

c# arrays string char shift