Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old May 9th, 2006, 1:51 PM   #11
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
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
DaWei is offline   Reply With Quote
Old May 9th, 2006, 3:18 PM   #12
stevengs
Professional Programmer
 
stevengs's Avatar
 
Join Date: May 2005
Location: Bad Nauheim, Germany
Posts: 436
Rep Power: 4 stevengs is on a distinguished road
Abbott and Costello: "Who's on 256th?"
__________________
-Steven
"Is this a piece of your brain?" - Basil Fawlty
stevengs is offline   Reply With Quote
Old May 11th, 2006, 9:14 AM   #13
biran
Newbie
 
Join Date: Apr 2006
Posts: 11
Rep Power: 0 biran is on a distinguished road
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
biran is offline   Reply With Quote
Old May 11th, 2006, 9:42 AM   #14
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
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
DaWei is offline   Reply With Quote
Old May 12th, 2006, 12:30 AM   #15
biran
Newbie
 
Join Date: Apr 2006
Posts: 11
Rep Power: 0 biran is on a distinguished road
DaWei,
ohh, Now i understand that.
thanks for great info.
biran
biran is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:27 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC