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

Array of Structures | Loop and Break

Array of Structures

Suppose we have to store data of 100 books we would be required to use 100 different structure variables from b1 to b100, which is definitely not very convenient. A better approach would be to use an array of structures.

Example (how to use an array of structures)

#include <stdio.h>
int main() {
	struct book {
		char name;
		int price;
		int pages;
	};
	struct book b[100];
	int i;
	for (i = 0; i <= 99; i++) {
		printf("\nEnter name, price and pages ");
		scanf("%c %d %d", &b[i].name, &b[i].price, &b[i].pages);
	}
	for (i = 0; i <= 99; i++)
		printf("\n%c %d %d", b[i].name, b[i].price, b[i].pages);

getchar();
return 0;
}
Share

You may also like...