This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..
Question
SadStatue
Μέρα
Έχω μια ερώτηση.
Σε μια μεταβλητή x
το ++x; και το x++; θα κάνουν ακριβώς την ίδια δουλεία;
Δηλαδή αυτό:
public static void main (String args[])
{
int x = 0;
x++;
}
Θα κάνει ακριβώς το ίδιο με αυτό?
public static void main (String args[])
{
int x = 0;
++x;
}
-------------------------
Edit : Prefix
Edited by SadStatue7 answers to this question
Recommended Posts