Agus Budy Wuysang wrote: > > > mmm, itu "constant string" apa maksudnya bukan 'const char *s[]' dan > > s[] == *s == constant pointer == array of char > s == normal double pointer != constant > $ cdecl explain 'const char *argv[]' declare argv as array of pointer to const char $ cdecl explain 'char * const argv[]' declare argv as array of const pointer to char jadi kalo pengennya agar program tidak bisa memodifikasi isi string di argv, yg. benar adalah dengan 'const char *argv[]'. > > 'const char *e[]' ? Dan kalau nggak salah, argv[argc+1] itu selalu > > diberi nilai NULL, jadi kita bisa nulis seperti ini: > > argv[argc] == NULL > argc selalu >= 1 (argv[0]) > argh! anda benar, argv[argc]==NULL, bukan argv[argc+1]==NULL. -- cheers, Bennylp -------------------------------------------------------------------------------- Utk berhenti langganan, kirim email ke [EMAIL PROTECTED] Informasi arsip di http://www.linux.or.id/milis.php3 Pengelola dapat dihubungi lewat [EMAIL PROTECTED]
- Re: [programming] Command Line Argument for C Haris Fauzi
- RE: [programming] Command Line Argument for C commedo
- Re: [programming] Command Line Argument for C Hardian Suprapto
- Re: [programming] Command Line Argument for C Agus Budy Wuysang
- Re: [programming] Command Line Argument for C Priyadi Iman Nurcahyo
- Re: [programming] Command Line Argument for C Benny Prijono
- Re: [programming] Command Line Argument for C Danny Setiawan
- Re: [programming] Command Line Argument for C Agus Budy Wuysang
- RE: [programming] Command Line Argument for C Purwadi
- Re: [programming] Command Line Argument for C Benny Prijono
- Re: [programming] Command Line Argument for C Agus Budy Wuysang
- Re: [programming] Command Line Argument for C Agus Budy Wuysang
- Re: [programming] Command Line Argument for C Benny Prijono
- Re: [programming] Command Line Argument for C Agus Budy Wuysang
- Re: [programming] Command Line Argument for C Benny Prijono
- Re: [programming] Command Line Argument for C Agus Budy Wuysang
- Re: [programming] Command Line Argument for C Benny Prijono