MESSAGE
DATE | 2016-03-06 |
FROM | Asia Suarez
|
SUBJECT | Re: [Hangout-NYLXS] Announcement: Workshop Organizational Meeting
|
From hangout-bounces-at-nylxs.com Sun Mar 6 23:38:14 2016 Return-Path: X-Original-To: archive-at-mrbrklyn.com Delivered-To: archive-at-mrbrklyn.com Received: from www.mrbrklyn.com (www.mrbrklyn.com [96.57.23.82]) by mrbrklyn.com (Postfix) with ESMTP id 374191617B8; Sun, 6 Mar 2016 23:38:14 -0500 (EST) X-Original-To: hangout-at-nylxs.com Delivered-To: hangout-at-nylxs.com Received: from mail-yw0-f182.google.com (mail-yw0-f182.google.com [209.85.161.182]) by mrbrklyn.com (Postfix) with ESMTP id 153131616DC for ; Sun, 6 Mar 2016 23:38:10 -0500 (EST) Received: by mail-yw0-f182.google.com with SMTP id h129so85977868ywb.1 for ; Sun, 06 Mar 2016 20:38:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nyu-edu.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to; bh=5/ijddMI6rtgfYtiNFkw2mwHb8OAB/ZF/jMJWcz+/Fg=; b=YYg1/ZrkdezWrqM2ujHoGnO3sPUMjuHWUXJm1BCB0qQqOORth25TXw+tI4CgujCzBQ ZzEdoqH36RNftX0gCrPc6DUK8nI5rTcCfV8GXWGaBmbhbYL3XNWvZyYun6fed6NYCmBC s8PnDNJeWqddzoDPDQsLkfDZQPu0yqnj0sbagIG5s7h16tHxQzReWYy3GZL+puFvZ1Z5 gVVOYJS1wkFlVwzsX9vq7mQO4w/PlojVQIxI1yRBbu/Y79Ddx+sdiDw+aY85Avqll6E1 vMvJoDTnFvnKUThti6xzpV6YcaFyjQUP8JurWbqAI3GS8YN0gDFEgoXQqb/WHYsrMghA pohw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to; bh=5/ijddMI6rtgfYtiNFkw2mwHb8OAB/ZF/jMJWcz+/Fg=; b=D0Uehgjheb8f4d8mCDfCnSyPEsUXAKd++ElwLLxvYyLxtCVxnEz/J8n2PgNL9/VZgc 0iVBWYPnUbyEXUyN1jgdvqCWFHGkqYAzD7UpeDx9rOIBDuw9V7DVv1f0VXzouzve2ttR iWvwcsm8u3aGyJohILaEkzPZ3isU6EsO89tJDwdqxrjitxrDhFEJYOQDtGD381wnc64F rjRH9vs6iCxX8CDEv6rfejIJVf+YCIK8C+pp6hhoYJ2SU5b+s2KHuq/zS4dE2UoEOu+i wRviy1blOygpzI33DhrrcjpJnd+Im1UbmUtJE5WGA0JPSQzjxZ0dfvDgsNP2ptoEj7K/ JaMA== X-Gm-Message-State: AD7BkJLohdMhDrNf3TNGzCvY4QU2sbreQmdIalHL7sEZVoV3kVOc2z9Dsex4N6lIJ9FkWTE4jBIafPzSI6AF3AZW MIME-Version: 1.0 X-Received: by 10.13.246.130 with SMTP id g124mr11012213ywf.29.1457325074231; Sun, 06 Mar 2016 20:31:14 -0800 (PST) Received: by 10.37.68.86 with HTTP; Sun, 6 Mar 2016 20:31:14 -0800 (PST) In-Reply-To: References: <56DB9C63.7050505-at-panix.com> <56DBB62D.20402-at-panix.com> <98FBA888-C722-49AC-9AF8-628717031817-at-nyu.edu> <56DBD333.5070700-at-mrbrklyn.com> <56DD00AE.7020300-at-panix.com> Date: Sun, 6 Mar 2016 23:31:14 -0500 Message-ID: From: Asia Suarez To: NYLXS Discussions List X-Content-Filtered-By: Mailman/MimeDel 2.1.17 Subject: Re: [Hangout-NYLXS] Announcement: Workshop Organizational Meeting tomorrow 7:00PM X-BeenThere: hangout-at-nylxs.com X-Mailman-Version: 2.1.17 Precedence: list Reply-To: NYLXS Discussions List List-Id: NYLXS Discussions List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0447290161==" Errors-To: hangout-bounces-at-nylxs.com Sender: "hangout"
--===============0447290161== Content-Type: multipart/alternative; boundary=94eb2c030e205f64fc052d6defa8
--94eb2c030e205f64fc052d6defa8 Content-Type: text/plain; charset=UTF-8
From what I understand, this is sort of a visual representation of what's happening: int array[4]= {1,2,3,4};
Memory Address || Value||
1 || 1 ||
2 || 2 || 3 || 3 || 4 || 4 ||
(Arbitrary values for address are chosen, but the point is that they are all contiguous values, meaning, one right after the other. )
int* matrix = array +1;
Memory Address || Value||
102 || 2 || 103 || 3 || 104 || 4 ||
105 ||56fx1 || <-----This value was never initialized
Again memory is contiguous, but we access a memory address that we had not initialized due to the (+1).
On Sun, Mar 6, 2016 at 11:21 PM, Asia Suarez wrote:
> so the value: -1076361972 that you see is a value that is stored in the > next piece of contiguous memory following the specific memory wherever the > matrix pointer points. > > On Sun, Mar 6, 2016 at 11:16 PM, Ruben Safir wrote: > >> #include >> >> int main(int argv, char * argc ) >> { >> int array[4]= {1,2,3,4}; >> unsigned int i; >> for(i=0; i<4; i++) >> { >> printf("%d\t", array[i]); >> } >> >> printf("\n"); >> int* matrix = array +1; >> for(i=0; i<4; i++) >> { >> printf("%d\t", matrix[i]); >> } >> return 0; >> } >> >> >> ruben-at-www:~> gcc asia.c >> ruben-at-www:~> ./a.out >> 1 2 3 4 >> 2 3 4 -1076361972 ruben-at-www:~> >> >> What happened here? >> _______________________________________________ >> hangout mailing list >> hangout-at-nylxs.com >> http://www.nylxs.com/ >> > >
--94eb2c030e205f64fc052d6defa8 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8"
From what I understand, this is sort of a visual representation of what's happening: int array[4]= {1,2,3,4}; ? ? ? ? ? ? Memory Address || Value||?
? 1 ? ? ? ? ? ? ? || 1 ? ? ? ||
? 2 ? ? ? ? ? ? ? || 2 ? ? ? ||
? 3 ? ? ? ? ? ? ? || 3 ? ? ? ||
? 4 ? ? ? ? ? ? ? || 4 ? ? ? ||
(Arbitrary values for address are chosen, but the point is that they are all contiguous values, meaning, one right after the other. ) int* matrix = array +1; ? Memory Address || Value||
102 ? ? ? ? ? ? ? || 2 ? ? ? ||
103 ? ? ? ? ? ? ? || 3 ? ? ? ||
104 ? ? ? ? ? ? ? || 4 ? ? ? ||
105 ? ? ? ? ? ? ? ||56fx1 || <-----This value was never initialized
Again memory is contiguous, but we access a memory address that we had not initialized due to the (+1).
On Sun, Mar 6, 2016 at 11:21 PM, Asia Suarez <[1]as9795-at-nyu.edu> wrote:
so the value:? -1076361972 ? that you see is a value that is stored in the next piece of contiguous memory following the specific memory wherever the matrix pointer points.?
On Sun, Mar 6, 2016 at 11:16 PM, Ruben Safir <[2]mrbrklyn-at-panix.com> wrote:
#include ? int main(int argv, char * argc ) { ? ? int array[4]= {1,2,3,4}; ? ? unsigned int i; ? for(i=0; i<4; i++) ? { ? printf("%d\t", array[i]); ? } ? printf("\n"); ? int* matrix = array +1; ? for(i=0; i<4; i++) ? { ? ? printf("%d\t", matrix[i]); ? } ? return 0; } ruben-at-www:~> gcc asia.c ruben-at-www:~> ./a.out 1? ? ? ? 2? ? ? ? 3? ? ? ? 4 2? ? ? ? 3? ? ? ? 4? ? ? ? -1076361972? ? ? ruben-at-www:~> What happened here?
_______________________________________________ hangout mailing list [3]hangout-at-nylxs.com [4]http://www.nylxs.com/
References
1. mailto:as9795-at-nyu.edu 2. mailto:mrbrklyn-at-panix.com 3. mailto:hangout-at-nylxs.com 4. http://www.nylxs.com/
--94eb2c030e205f64fc052d6defa8--
--===============0447290161== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline
_______________________________________________ hangout mailing list hangout-at-nylxs.com http://www.nylxs.com/ --===============0447290161==--
--===============0447290161== Content-Type: multipart/alternative; boundary=94eb2c030e205f64fc052d6defa8
--94eb2c030e205f64fc052d6defa8 Content-Type: text/plain; charset=UTF-8
From what I understand, this is sort of a visual representation of what's happening: int array[4]= {1,2,3,4};
Memory Address || Value||
1 || 1 ||
2 || 2 || 3 || 3 || 4 || 4 ||
(Arbitrary values for address are chosen, but the point is that they are all contiguous values, meaning, one right after the other. )
int* matrix = array +1;
Memory Address || Value||
102 || 2 || 103 || 3 || 104 || 4 ||
105 ||56fx1 || <-----This value was never initialized
Again memory is contiguous, but we access a memory address that we had not initialized due to the (+1).
On Sun, Mar 6, 2016 at 11:21 PM, Asia Suarez wrote:
> so the value: -1076361972 that you see is a value that is stored in the > next piece of contiguous memory following the specific memory wherever the > matrix pointer points. > > On Sun, Mar 6, 2016 at 11:16 PM, Ruben Safir wrote: > >> #include >> >> int main(int argv, char * argc ) >> { >> int array[4]= {1,2,3,4}; >> unsigned int i; >> for(i=0; i<4; i++) >> { >> printf("%d\t", array[i]); >> } >> >> printf("\n"); >> int* matrix = array +1; >> for(i=0; i<4; i++) >> { >> printf("%d\t", matrix[i]); >> } >> return 0; >> } >> >> >> ruben-at-www:~> gcc asia.c >> ruben-at-www:~> ./a.out >> 1 2 3 4 >> 2 3 4 -1076361972 ruben-at-www:~> >> >> What happened here? >> _______________________________________________ >> hangout mailing list >> hangout-at-nylxs.com >> http://www.nylxs.com/ >> > >
--94eb2c030e205f64fc052d6defa8 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8"
From what I understand, this is sort of a visual representation of what's happening: int array[4]= {1,2,3,4}; ? ? ? ? ? ? Memory Address || Value||?
? 1 ? ? ? ? ? ? ? || 1 ? ? ? ||
? 2 ? ? ? ? ? ? ? || 2 ? ? ? ||
? 3 ? ? ? ? ? ? ? || 3 ? ? ? ||
? 4 ? ? ? ? ? ? ? || 4 ? ? ? ||
(Arbitrary values for address are chosen, but the point is that they are all contiguous values, meaning, one right after the other. ) int* matrix = array +1; ? Memory Address || Value||
102 ? ? ? ? ? ? ? || 2 ? ? ? ||
103 ? ? ? ? ? ? ? || 3 ? ? ? ||
104 ? ? ? ? ? ? ? || 4 ? ? ? ||
105 ? ? ? ? ? ? ? ||56fx1 || <-----This value was never initialized
Again memory is contiguous, but we access a memory address that we had not initialized due to the (+1).
On Sun, Mar 6, 2016 at 11:21 PM, Asia Suarez <[1]as9795-at-nyu.edu> wrote:
so the value:? -1076361972 ? that you see is a value that is stored in the next piece of contiguous memory following the specific memory wherever the matrix pointer points.?
On Sun, Mar 6, 2016 at 11:16 PM, Ruben Safir <[2]mrbrklyn-at-panix.com> wrote:
#include ? int main(int argv, char * argc ) { ? ? int array[4]= {1,2,3,4}; ? ? unsigned int i; ? for(i=0; i<4; i++) ? { ? printf("%d\t", array[i]); ? } ? printf("\n"); ? int* matrix = array +1; ? for(i=0; i<4; i++) ? { ? ? printf("%d\t", matrix[i]); ? } ? return 0; } ruben-at-www:~> gcc asia.c ruben-at-www:~> ./a.out 1? ? ? ? 2? ? ? ? 3? ? ? ? 4 2? ? ? ? 3? ? ? ? 4? ? ? ? -1076361972? ? ? ruben-at-www:~> What happened here?
_______________________________________________ hangout mailing list [3]hangout-at-nylxs.com [4]http://www.nylxs.com/
References
1. mailto:as9795-at-nyu.edu 2. mailto:mrbrklyn-at-panix.com 3. mailto:hangout-at-nylxs.com 4. http://www.nylxs.com/
--94eb2c030e205f64fc052d6defa8--
--===============0447290161== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline
_______________________________________________ hangout mailing list hangout-at-nylxs.com http://www.nylxs.com/ --===============0447290161==--
|
|