MESSAGE
DATE | 2015-01-23 |
FROM | Ruben Safir
|
SUBJECT | Re: [LIU Comp Sci] Algorithms Assignment 1 attempt
|
From owner-learn-outgoing-at-mrbrklyn.com Fri Jan 23 06:48:46 2015 Return-Path: X-Original-To: archive-at-mrbrklyn.com Delivered-To: archive-at-mrbrklyn.com Received: by mrbrklyn.com (Postfix) id AE0A1161174; Fri, 23 Jan 2015 06:48:46 -0500 (EST) Delivered-To: learn-outgoing-at-mrbrklyn.com Received: by mrbrklyn.com (Postfix, from userid 28) id 9E911161184; Fri, 23 Jan 2015 06:48:46 -0500 (EST) Delivered-To: learn-at-mrbrklyn.com Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) by mrbrklyn.com (Postfix) with ESMTP id 23D9C161174 for ; Fri, 23 Jan 2015 06:48:46 -0500 (EST) Received: from [10.0.0.19] (unknown [96.57.23.82]) by mailbackend.panix.com (Postfix) with ESMTPSA id D98CB14197 for ; Fri, 23 Jan 2015 06:48:45 -0500 (EST) Message-ID: <54C2351D.8010307-at-panix.com> Date: Fri, 23 Jan 2015 06:48:45 -0500 From: Ruben Safir User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: learn-at-mrbrklyn.com Subject: Re: [LIU Comp Sci] Algorithms Assignment 1 attempt References: <54C19620.5070706-at-panix.com> <54C22F4B.1030808-at-panix.com> <54C23340.3080500-at-panix.com> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: owner-learn-at-mrbrklyn.com Precedence: bulk Reply-To: learn-at-mrbrklyn.com
On 01/23/2015 06:43 AM, Maneesh Kongara wrote: > Damn right! Thank you so much for that. :) > To my understanding, a is a variable and *a is a pointer pointing to some > address location. No clue about **a.
No no
int a[10];
Now what is a, *a and **a
see: http://bytes.com/topic/c/answers/218667-two-dimensional-arrays-passed-functions
Ruben > On Jan 23, 2015 6:41 AM, "Ruben Safir" wrote: > >> On 01/23/2015 06:26 AM, Maneesh Kongara wrote: >>> Arrays accept only sequential insertion rite? I don't know if you could >>> insert data at random in arrays. Please correct me if I'm wrong. >> ;) >> >> wrong in c at least >> >> that is a fundemental >> >> int a[10] = {0}; >> int b; >> a[3] = 5; >> >> >> b = a[3]; >> >> No problem >> >> >> The question I always forget is this: What is a and what is *a and what >> is **a >> >> >>
|
|