Search found 2 matches

by technosaurus
Fri Feb 24, 2023 1:25 am
Forum: Programming
Topic: FossaPup: DEVX C compiler can't create executables
Replies: 4
Views: 589

Re: FossaPup: DEVX C compiler can't create executables

When you look at any failed operation, the primary word you should look for is "error" (secondary would be "warning"), for instance: > /usr/lib/gcc/x86_64-linux-gnu/5/cc1: error while loading shared libraries: libisl.so.15: cannot open shared object file: No such file or directory Did you by chance ...
by technosaurus
Mon Jan 09, 2023 12:32 am
Forum: Programming
Topic: C Bubble Sort
Replies: 5
Views: 904

Re: C Bubble Sort

Bubble sort "bubbles" the value into the last element.
The following iteration can omit the last element (n-1) because it has been sorted already...

Code: Select all

     for (size_t i = 0; i < n; --n)

You were removing the first (unsorted) element instead of the last (sorted)

Go to advanced search