Article View: fr.comp.lang.c
Article #15025accès à un élément de *argv[]
From: Thierry B
Date: Sat, 15 Oct 2005 11:28
Date: Sat, 15 Oct 2005 11:28
14 lines
1590 bytes
1590 bytes
Bonjour, Quand on déclare une fonction main comme ceci: int main (int argc, char *argv[]) *argv[], représente un tableau dont chaque élément est un pointeur vers une chaine de caractère. Je ne comprends pas pourquoi alors on accède à la valeur de chaque élément de ce tableau par argv[i] car si chaque élément est un pointeur, il faut utiliser une * pour avoir la vlaeur de ce pointeur non? Merci bcp. A+
Technical Details
Message-ID:
<1129375708.461315.266570@g14g2000cwa.googlegroups.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!g14g2000cwa.googlegroups.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: f9822,81ea3528af9bc77b,start X-Google-Attributes: gidf9822,public X-Google-Language: FRENCH,ASCII Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!g14g2000cwa.googlegroups.com!not-for-mail From: "Thierry B" <thierry.bouhnik@gmail.com> Newsgroups: fr.comp.lang.c Subject: accès à un élément de *argv[] Date: 15 Oct 2005 04:28:28 -0700 Organization: http://groups.google.com Lines: 15 Message-ID: <1129375708.461315.266570@g14g2000cwa.googlegroups.com> NNTP-Posting-Host: 82.224.47.63 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1129375715 2226 127.0.0.1 (15 Oct 2005 11:28:35 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 15 Oct 2005 11:28:35 +0000 (UTC) User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr-FR; rv:1.7.12) Gecko/20050919 Firefox/1.0.7,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: g14g2000cwa.googlegroups.com; posting-host=82.224.47.63; posting-account=8zpqDA0AAACpm8oU5_TKS1gqRyX3CEVa