Top "Char" questions

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

Get a substring of a char*

For example, I have this char *buff = "this is a test string"; and want to get "test". How can I …

c char substring
Java: parse int value from a char

I just want to know if there's a better solution to parse a number from a character in a string (…

java parsing char int parseint
How can I convert a character to a integer in Python, and viceversa?

I want to get, given a character, its ASCII value. For example, for the character a, I want to get 97, …

python integer char type-conversion
How to check if a char is equal to an empty space?

Here's what I've got: private static int countNumChars(String s) { for(char c : s.toCharArray()){ if (Equals(c," ")) } } But that …

java char whitespace
How to convert char to integer in C?

Possible Duplicates: How to convert a single char into an int Character to integer in C Can any body tell …

c char int
Delete last char of string

I am retrieving a lot of information in a list, linked to a database and I want to create a …

c# string char
Comparing chars in Java

I want to check a char variable is one of 21 specific chars, what is the shortest way I can do …

java comparison char
How to do scanf for single char in C

In C: I'm trying to get char from the user with scanf and when I run it the program don't …

c char scanf
How to get the first five character of a String

I have read this question to get first char of the string. Is there a way to get the first …

c# asp.net string char
How do I apply the for-each loop to every character in a String?

So I want to iterate for each character in a string. So I thought: for (char c : "xyz") but I …

java string loops foreach char