WHY GIVE DIFFERENT RESULT IN THIS STATEMENT

Amit Singh

Total Post:103

Points:721
Posted by  Amit Singh
Java 
 1709  View(s)
Ratings:
Rate this:
for example
int s=23;
s++ and ++s
the result of s++ and ++s in java is different from c++ why?
  1. Awadhendra Tiwari

    Post:126

    Points:882
    Re: why give different result in this statement

    I had tried this code.

    This will provide same result according to this senario.

    Can you provide a working function so that I will find out possible bugs.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!