Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8303473
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T17:33:07+00:00 2026-06-08T17:33:07+00:00

I recently came across a statement saying that char type in C is really

  • 0

I recently came across a statement saying that “char” type in C is really a special form of integer – one that stores the ASCII code numbers which represent characters and symbols.

How far is this valid? This leads to another question that – Can the char type really be categorized as an integer in C?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T17:33:09+00:00Added an answer on June 8, 2026 at 5:33 pm

    Yes, in C, char is considered an integer type. It’s required to have a minimum of 8 bits. The equivalent between a char and a byte of storage is fairly explicit, not just something that usually happens. For example, (C99, §5.2.4.2.1/1):

    number of bits for smallest object that is not a bit-field (byte)
    CHAR_BIT                                            8
    

    So, a char always occupies exactly one byte, which must be a minimum of 8 bits. If it’s larger, it still occupies exactly one byte — but that byte happens to be larger than 8 bits.

    As far as holding ASCII codes goes, that’s frequently true, but not necessarily the case. On something like an IBM mainframe, it’ll probably hold EBCDIC codes instead. On more common machines, “ASCII” happens more or less incidentally, but when encoding non-English characters, you’ll quickly find that it’s not really storing ASCII. It’s typically storing ISO 8859/x, or perhaps Unicode UTF-8.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I recently came across Linsched where one can simulate in user-space some of the
I recently came across a Windows library called AHK that gives me great control
I recently started learning Java and i came across a statement including (ActionEvent e
I recently came across the following line of code: var type = (typeof x).toLowerCase();
I recently came across a html email that contained _label attributes on the <
I recently came across a CSS pseudo class that can do an effect for
I recently came across a server that's sending a Location header (for a redirect)
I recently came across some weird looking class that had three constructors: class Class
I recently came across classes that use a configuration object instead of the usual
I recently came across a bit of not-well-tested legacy code for writing data that's

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.