We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
void printArray(void) {
int array[SIZE] = {5, 4, 3, 9, 1, 8, 6, 7, 5, 2}; printf("4: %d\n", array[4]); } printArray();
6907 segmentation fault
The following code will work:
void printArray(void) { int array[SIZE] = {5, 4, 3, 9, 1, 8, 6, 7, 5, 2}; printf("4: %d\n", array[4]); } printArray();
Issue copied from: https://code.google.com/p/picoc/issues/detail?id=192 and https://code.google.com/p/picoc/issues/detail?id=193
The text was updated successfully, but these errors were encountered:
No branches or pull requests
void printArray(void) {
define SIZE 10
int array[SIZE] = {5, 4, 3, 9, 1, 8, 6, 7, 5, 2};
printf("4: %d\n", array[4]);
}
printArray();
6907 segmentation fault
The following code will work:
define SIZE 10
void printArray(void) {
int array[SIZE] = {5, 4, 3, 9, 1, 8, 6, 7, 5, 2};
printf("4: %d\n", array[4]);
}
printArray();
Issue copied from: https://code.google.com/p/picoc/issues/detail?id=192 and
https://code.google.com/p/picoc/issues/detail?id=193
The text was updated successfully, but these errors were encountered: