WordPress database error: [Table './ay6u3nor6dat6ba1/kn6_ayu1n9k4_5_actionscheduler_actions' is marked as crashed and last (automatic?) repair failed]
SELECT a.action_id FROM kn6_ayu1n9k4_5_actionscheduler_actions a WHERE 1=1 AND a.hook='aioseo_send_usage_data' AND a.status IN ('in-progress') ORDER BY a.scheduled_date_gmt ASC LIMIT 0, 1

WordPress database error: [Table './ay6u3nor6dat6ba1/kn6_ayu1n9k4_5_actionscheduler_actions' is marked as crashed and last (automatic?) repair failed]
SELECT a.action_id FROM kn6_ayu1n9k4_5_actionscheduler_actions a WHERE 1=1 AND a.hook='aioseo_send_usage_data' AND a.status IN ('pending') ORDER BY a.scheduled_date_gmt ASC LIMIT 0, 1

pre and post increment | Loop and Break

pre and post increment

i++ shows that the value of i is post incremented after operation, ++i shows that its pre incremented before operation.

Example

public class Test {

	public static void main(String args[]) {
		int i = 5;

		//--------------------------------
		//--------POST INCREMENT----------
		System.out.println("5 because of post increment : " + i++);

		System.out.println("6 because value incremented above : " + i);

		// execution from left to right, this will output 6 7 8

		System.out.println(i++ + " " + i++ + " " + i++);

		// output 9
		System.out.println("output 9 : " + i);

		//--------------------------------
		//--------PRE INCREMENT----------
		System.out.println("10 because of pre increment : " + ++i);

		System.out.println("10 because same : " + i);

		// execution from left to right, this will output 10 11 12

		System.out.println(++i + " " + ++i + " " + ++i);

		// output 9
		System.out.println("output 13 : " + i);

	}
}
Share

You may also like...