Skip to content
Snippets Groups Projects
Verified Commit 5451470c authored by orestis.malaspin's avatar orestis.malaspin
Browse files

added exit codes

parent 680abfa6
No related branches found
No related tags found
No related merge requests found
......@@ -35,4 +35,12 @@ int main() {
printf("%f ", tab[i]);
}
printf("\n");
for (int i = 0; i < SIZE - 1; ++i) {
if (tab[i] > tab[i + 1]) {
return EXIT_FAILURE;
}
}
return EXIT_SUCCESS;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment