Check the functionality of postincrement and preincrement


return ++i;

will work