I suggest you ...

i see a bug in variable changing

hi there,

i write these code lines but it has a bug.

int msn = 20;
string strMSN = (msn++).ToString();
return strMSN;

in my method return 20; but in fact it must be 21..... isn't it ?

thanks,

1 vote
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Sina Shiri Hamedani shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    3 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      Submitting...

      Feedback and Knowledge Base