![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#11 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
I just refer everyone to Tempest's post. Additional explanations of the mathematical meaning of a numerical base may be found in numerous other places. While it is true that time corrodes meanings, the corrosion is often the unfortunate work of, not time, but people of limited knowledge and vocabulary that can't find the proper expression on their tongue. They then adapt and, when questioned, proclaim their new discoveries, point to their academic credentials, and lead willing acolytes to kneel and kiss the hem of their robe. At that point we mere mortals are essentially lost.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#12 |
|
Professional Programmer
Join Date: May 2005
Location: Bad Nauheim, Germany
Posts: 436
Rep Power: 4
![]() |
Abbott and Costello: "Who's on 256th?"
__________________
-Steven "Is this a piece of your brain?" - Basil Fawlty |
|
|
|
|
|
#13 |
|
Newbie
Join Date: Apr 2006
Posts: 11
Rep Power: 0
![]() |
Dameon
"ASCII represents a single character in seven bits. For obvious reasons, each character takes up one byte with the most significant bit unused." I think ascii codes are 8 bits and then its apear null('\0') pointer. example printf("%c,%d",'a',sizeof('a')); answer is: a,8 but printf("%d,%d",sizeof('a'),sizeof('\n')); answer is: 8,8 ______ its mean: |'a'|'\0'| ~~~~~ so i think ascii codes are 8 Bits or 1 byte or 2 nibles don't mind because im just sharing my stupid knowladge thanks |
|
|
|
|
|
#14 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
You are misconstruing things, biran. True ASCII is encoded in 7 bits. Yes, it occupies 8 bits much of the time, particularly in your memory. When it does, it's 'sizeof' is 8, but it still comprises only 7 meaningful bits. An ASCII character is a character. When you introduce the concept of a null ('\0') byte (which you are mistakenly calling a pointer), you are delving into territory dealing with a COLLECTION of characters. You should get your facts straight and not propagate your own misperceptions. I, for one, DO mind.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#15 |
|
Newbie
Join Date: Apr 2006
Posts: 11
Rep Power: 0
![]() |
DaWei,
ohh, Now i understand that. thanks for great info. biran |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|