Top "Char" questions

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

How to copy a char array in C?

In C, I have two char arrays: char array1[18] = "abcdefg"; char array2[18]; How to copy the value of array1 to …

c arrays char copy
Escape Character in SQL Server

I want to use quotation with escape character. How can I do? I have received error in SQL Server Unclosed …

sql-server escaping char
Why is char[] preferred over String for passwords?

In Swing, the password field has a getPassword() (returns char[]) method instead of the usual getText() (returns String) method. Similarly, …

java string security passwords char
clearing a char array c

I thought by setting the first element to a null would clear the entire contents of a char array. char …

c arrays char
How to empty a char array?

Have an array of chars like char members[255]. How can I empty it completely without using a loop? char members[255]; …

c arrays char
.NET / C# - Convert char[] to string

What is the proper way to turn a char[] into a string? The ToString() method from an array of characters …

c# .net arrays string char
Convert char to int in C#

I have a char in c#: char foo = '2'; Now I want to get the 2 into an int. I …

c# char int
What is the difference between char s[] and char *s?

In C, one can use a string literal in a declaration like this: char s[] = "hello"; or like this: char *…

c string char constants
Returning an array using C

I am relatively new to C and I need some help with methods dealing with arrays. Coming from Java programming, …

c arrays pointers char
Check string for palindrome

A palindrome is a word, phrase, number or other sequence of units that can be read the same way in …

java arrays string char palindrome