Hai
 
While declaring the i you are assigning 4 to the i...
While in the if condition you are assigning 5 to the i,(Probably u have
to check for a condition that is == )
and rest of the things are fine for you i think.......
 
int main()
{
     int i=4;
     if(i==5)   // I changed from i=5 to i == 5 might be you will get
warning message i think condition always true...
     {
           printf(" Hi Ranjan ");
     }
     return 0;
}

 
 

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf
Of ranjan kumar ojha
Sent: Tuesday, February 06, 2007 3:08 PM
To: [email protected]
Subject: [c-prog] C objective...



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
<http://us.rd.yahoo.com/mail/uk/taglines/default/nowyoucan/free_from_isp
/*http://us.rd.yahoo.com/evt=40565/*http://uk.docs.yahoo.com/nowyoucan.h
tml> Yahoo! Mail goes wherever you go - free your email address from
your Internet provider. 



 

Reply via email to