About 7,370 results
Open links in new tab
  1. Printing chars and their ASCII-code in C - Stack Overflow

    Sep 24, 2009 · How do I print a char and its equivalent ASCII value in C?

  2. Convert ASCII number to ASCII Character in C - Stack Overflow

    Jul 12, 2011 · In C is there a way to convert an ASCII value typed as an int into the the corresponding ASCII character as a char?

  3. What is the default encoding for C strings? - Stack Overflow

    Oct 22, 2010 · A c string is pretty much just a sequence of bytes. That means, that it does not have a well-defined encoding, it could be ASCII, UTF8 or anything else, for that matter. Because most …

  4. How to use symbols of extended ASCII table in C?

    Nov 10, 2014 · 18 It's better to use unicode than extended ASCII, which is non-standard. A thread about printing unicode characters in C : printing-utf-8-strings-with-printf-wide-vs-multibyte-string-literals But …

  5. How to convert an ASCII character into an int in C

    Mar 16, 2011 · You can also explicitly convert it with (int)c. If you mean something else, such as how to convert an ASCII digit to an int, that would be c - '0', which implicitly converts c to an int and then …

  6. c - What is the difference between NULL, '\0' and 0? - Stack Overflow

    A byte with a value of 0x00 is, on the ASCII table, the special character called NUL or NULL. In C, since you shouldn't embed control characters in your source code, this is represented in C strings with an …

  7. c - Relationship between char and ASCII Code? - Stack Overflow

    Jul 14, 2017 · C doesn't require a specific character encoding, but most systems nowadays use a superset of ASCII (this is a very old encoding using only 7 bits) like e.g. UTF-8. So, if you have a …

  8. char - What is the symbol for whitespace in C? - Stack Overflow

    May 4, 2015 · In ASCII, space is code 32, so you could specify space by '\x20' or even 32, but you really shouldn't do that. Aside: the word "whitespace" is a catch all for space, tab, newline, and all of that.

  9. binary - Is there a function that returns the ASCII value of a ...

    May 10, 2009 · 19 I need a function that returns the ASCII value of a character, including spaces, tabs, newlines, etc... On a similar note, what is the function that converts between hexadecimal, decimal, …

  10. c - How get ASCII of a string - Stack Overflow

    Jul 21, 2012 · i need to get the ascii (int and hex format) representation of a string char by char. For example if i have the string "hello", i would get for int ascii 104 101 108 108 111 and for hex 68 65 …