From: Yu Jaemin Newsgroups: comp.os.msdos.djgpp Subject: Re: Pointer Usage Date: 13 Oct 1998 08:59:14 GMT Organization: Korea Telecom Lines: 31 Sender: Yu Jaemin Message-ID: <6vv4p2$8ge$1@news.kornet.nm.kr> References: <3622bf31 DOT 0 AT news1 DOT tm DOT net DOT my> NNTP-Posting-Host: soback.kornet.nm.kr User-Agent: tin/pre-1.4-980105 (UNIX) (SunOS/5.5.1 (sun4u)) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Earlblunt wrote: > Hello, > I am new in C programming and now learning about pointers. > Could anyone check for me the codes below for the CORRECT usage of pointers? > int cris , *liew , *ogy; I think this isn't a good way to declare pointer vars.. In this case, it looked there is no problem, but when you declare like this... int *liew,*ogy,cris; it could be a cause of error. Therefore, I recommend that split it as two lines. int cris; int *liew,*ogy; --------------------- Yu Jaemin ps. this is just my way of coding, please do as you wish. :)