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

New Message on MumbaiUserGroup

-----------------------------------------------------------
From: KavindraS
Message 1 in Discussion

While working with Increment operator I encountered very weird problem. I have written 
code snippets below. Just have a look at it, you 'll understand what is the problem. I 
think there's some problem in incrementation operation implementation in CSharp. 
Correct me if I am wrong.    C-Sharp code:::::::::::::: int i=0;
   int c=0;     while(i!=5)
    {
     c=c++;
     Console.WriteLine(c);
     i++;
    } Output :: 0 0 0 0 0   Equivalent C++ code::::::: int c=0;
 int k=0;  while(k!=5)
 {
  c=c++;
  Console::WriteLine(c);
  k++;
 } Output 1 2 3 4 5

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

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/MumbaiUserGroup/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to