About 92,700 results
Open links in new tab
  1. 4.11 — Chars – Learn C++ - LearnCpp.com

    Mar 19, 2025 · Text between single quotes is treated as a char literal, which represents a single character. For example, 'a' represents the character a, '+' represents the character for the plus …

  2. C data types - Wikipedia

    The C language provides the four basic arithmetic type specifiers char, int, float and double (as well as the Boolean type bool), and the modifiers signed, unsigned, short, and long. The following table lists …

  3. What is the difference between char array and char pointer in C?

    Sep 13, 2019 · This is because arrays decay into pointers, meaning that if an expression of type char[] is provided where one of type char* is expected, the compiler automatically converts the array into a …

  4. C Characters - W3Schools

    The char data type is used to store a single character. The character must be surrounded by single quotes, like 'A' or 'c', and we use the %c format specifier to print it:

  5. char, wchar_t, char8_t, char16_t, char32_t | Microsoft Learn

    Sep 9, 2025 · The char type was the original character type in C and C++. The char type stores characters from the ASCII character set or any of the ISO-8859 character sets, and individual bytes …

  6. C++ keyword: char - cppreference.com

    Feb 8, 2025 · Fundamental types: void, std::nullptr_t (since C++11). Integral types: int. Modifiers: signed, unsigned, short, long. Boolean type: bool. Boolean literals: false, true. Character types: char, char8_t …

  7. C++ Char Data Types - GeeksforGeeks

    Oct 11, 2025 · A Char datatype is a datatype that is used to store a single character. It is always enclosed within a single quote (' ').

  8. C++ char Type (Characters) - Programiz

    In this tutorial, we will learn about the char data type in C++ with the help of examples. We will also learn about the ASCII code and escape sequences.

  9. C++ Char Data Type with Examples - Guru99

    Aug 10, 2024 · What is Char? Char is a C++ data type designed for the storage of letters. Char is an abbreviation for an alphanumeric character. It is an integral data type, meaning the value is stored as …

  10. C Character Type

    Summary: in this tutorial, you will learn what C character type is and how to declare, use, and print character variables in C. C uses char type to store characters and letters. However, the char type is …