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

Passing Structure Variable to functions | Loop and Break

Passing Structure Variable to functions

It can be immediately realized that to pass individual elements would become more tedious as the number of structure elements go on increasing. A better way would be to pass the entire structure variable at a time.

Example

#include <stdio.h>
// Global declaration of structure because in other functions it's not available
struct address {
	char phone[15];
	char city[25];
	int pin;
};

int main() {
	struct address e = { "563269", "New York", 2365 };
	display(e);
	getchar();
	return 0;
}

int display(struct address ab) {
	printf("\nPhone = %s city = %s pin = %d", ab.phone, ab.city, ab.pin);
	return 0;
}
Share

You may also like...