Re: c doubt



swapna.annamaneni@xxxxxxxxx said:

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.

The code you have posted does not compile. You claim that "the condition
is failing always", which suggests that you do have a program which
will compile. I suggest you post that program, and ask for feedback on
it. What you have posted here is so incorrect in so many ways that it
is not clear exactly what you are asking.


can u help me.............

Whoever taught you English has misinformed you, and done you a
disservice. The letter 'u' is not a substitute for "you". It is just a
letter of the alphabet. Using it incorrectly in place of "you" makes
your article less pleasant to read, and some people here who could help
you may not bother to read your article if you are making it needlessly
unpleasant to do that.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at the above domain, - www.
.



Relevant Pages

  • Re: Strange value
    ... The language definition specifically denotes the result ... But this is an incorrect assumption. ... > would have thought that the second object would also get zero. ... > when I compile them or how often I compile them, ...
    (comp.lang.cpp)
  • Re: merge repl error invalid parameter
    ... Looking for a SQL Server replication book? ... For some reason it was failing due to an invalid object on the Branches ... the step still failed due to "Message The parameter is incorrect. ... I have no errors in my output file nor do I see this parameter issue. ...
    (microsoft.public.sqlserver.replication)
  • Re: EXECUTE IMMEDIATE statement FAILS
    ... I've tested the cursor SQL ... However, sql_stmt is failing. ... not allow you to compile code that needs to access the object. ... Your username itself needs to be granted access to the object to compile ...
    (comp.databases.oracle.misc)
  • Re: Ucase function - Compile error - Cant find project or library
    ... "Andrew Faust" wrote: ... >> The Compile is failing on a Ucase statement. ...
    (microsoft.public.vb.general.discussion)
  • Re: In SMS_INVENTORY_DATA_LOADER I have message 2721
    ... Check the mofcomp log file %windir%\system32\wbem\Logs\mofcomp.log. ... That should give you a clue as to what is failing to compile. ... The failing MOF file has ...
    (microsoft.public.sms.admin)