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

Global and Local Variables | Loop and Break

Global and Local Variables

A global variable’s scope is throughout the program in which the variable is declared, from any where, in any function we can modify the variable and local variables are limited to the block only in which they are defined declared declared, outside local block if local variables are accessed they produce error. Example

Example

#include <iostream>

int a = 20; // global variable
void function1() {
	std::cout << "\ninside function "<<a;
	// error here to access b, because b is local to main() function
	std::cout <<b; 
}

int main() {
	std::cout << a;
	int b = 200; // local variable to main function
	std::cout << b;	
	function1();
	getchar();
	return 0;
}
Share

You may also like...