Now tell me what does the "if()" do ?
it checks if the statement inside the curved bracket "()" is true or false. 
True is represented by any non-zero value, be it 5, 4, 1 or even -1,-2.
instead of "i=5", try the expressions inside the "()".
1.  -1
2.  i = -1
etc etc.
Now try the following
1.  0
2.  i = 0

The conditions given second time won't give any " Hi Ranjan "
Are you getting me?
Regards,
Debasish


<html><DIV>
<P><FONT face="Lucida Handwriting, Cursive" color=#ff9900 
size=2>Karmennavava Dhikaraste, Maaphaleshu 
Kadaachanah</FONT></P></DIV></html>





From: navneet jain <[EMAIL PROTECTED]>
Reply-To: c-prog@yahoogroups.com
To: c-prog@yahoogroups.com
Subject: Re: [c-prog] C objective...
Date: Mon, 12 Feb 2007 12:31:37 +0000 (GMT)

hello dear..
   rather then using
   if(i=5)
   u should i mean ought to use
   if(i==5){}

Saswat Praharaj <[EMAIL PROTECTED]> wrote:
           Aren't you getting a warning on line 4 of your program ?

-Saswat

On Tue, 2007-02-06 at 09:38 +0000, ranjan kumar ojha wrote:   int main()
{
      int i=4;
      if(i=5)
      {
            printf(" Hi Ranjan ");
      }
      return 0;
}

Its answer is Hi Ranjan can anyone explain it????




---------------------------------

The all-new Yahoo! Mail goes wherever you go - free your email address from 
your Internet provider.







---------------------------------
  Here’s a new way to find what you're looking for - Yahoo! Answers

_________________________________________________________________
Get Married in 2007. Join Shaadi.com 
http://www.shaadi.com/ptnr.php?ptnr=mhottag



To unsubscribe, send a blank message to <mailto:[EMAIL PROTECTED]>. 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/c-prog/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/c-prog/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to