Skip to content
Snippets Groups Projects
Commit e60f397a authored by Ashwaq Abdullah M Alsaqer's avatar Ashwaq Abdullah M Alsaqer
Browse files

Changed the Unary operator to give pre increment than post increment.

parent 9f12de9b
Branches master
No related tags found
No related merge requests found
......@@ -298,6 +298,6 @@ public class Machine
* get the number of instructions successfully executed by the VM so far
*/
public int getCount(){
return count++; // Unary Operator
return ++count; // Unary Operator
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment