c doubt
- From: swapna.annamaneni@xxxxxxxxx
- Date: 5 Apr 2007 02:27:38 -0700
hi,
i tried with this simple code
int array[],i;
for(i=-1;i<=sizeof(array);i++)
but the condition is failing always even array size is greater than
zero.
can u help me.............
.
- Follow-Ups:
- Re: c doubt
- From: Richard Heathfield
- Re: c doubt
- From: U
- Re: c doubt
- From: Ian Collins
- Re: c doubt
- Prev by Date: Re: Question about read data from a text file.
- Next by Date: Re: K&R2 1.6 Arrays, exercise 1-13 (vertical histogram)
- Previous by thread: read a file's line into an array, error: makes pointer from integer without a cast
- Next by thread: Re: c doubt
- Index(es):
Relevant Pages
|