From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13452 invoked by alias); 28 May 2011 08:47:35 -0000 Received: (qmail 13442 invoked by uid 22791); 28 May 2011 08:47:34 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from out3.smtp.messagingengine.com (HELO out3.smtp.messagingengine.com) (66.111.4.27) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 28 May 2011 08:47:18 +0000 Received: from compute1.internal (compute1.nyi.mail.srv.osa [10.202.2.41]) by gateway1.messagingengine.com (Postfix) with ESMTP id 58B0620A2D for ; Sat, 28 May 2011 04:47:17 -0400 (EDT) Received: from frontend1.messagingengine.com ([10.202.2.160]) by compute1.internal (MEProxy); Sat, 28 May 2011 04:47:17 -0400 Received: from [192.168.0.103] (unknown [2.106.159.158]) by mail.messagingengine.com (Postfix) with ESMTPSA id 693314036C1 for ; Sat, 28 May 2011 04:47:14 -0400 (EDT) Message-ID: <4DE0B689.8050501@fastmail.fm> Date: Sun, 29 May 2011 13:19:00 -0000 From: bjorn rohde jensen User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110502 Lightning/1.0b3pre Thunderbird/3.1.10 MIME-Version: 1.0 To: gcc-help@gcc.gnu.org Subject: Re: FW: why it is not from 0? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2011-05/txt/msg00405.txt.bz2 Hi Eric, This is really a question about character sets and string representation in C and not a question about GCC. What you are seeing are the integer values of the individual characters in the array, that is '0' to '8' followed by the string terminator '\0'. The values, you see, are consistent with with the ASCII character set. http://en.wikipedia.org/wiki/ASCII Try changing the string and compare the result with the ASCII tables. Yours sincerely, Bjorn