Skip to main content
47 events
when toggle format what by license comment
Nov 29 at 1:05 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Jul 31 at 23:09 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Apr 2 at 18:08 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Dec 4, 2023 at 3:09 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Aug 5, 2023 at 14:07 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Apr 7, 2023 at 12:05 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Dec 8, 2022 at 11:01 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Aug 10, 2022 at 6:03 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Apr 12, 2022 at 3:11 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Dec 13, 2021 at 3:03 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Aug 15, 2021 at 2:02 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Apr 17, 2021 at 7:05 comment added C-- @Max You seem to not understand what @Irene has said. If your function if of type void, you can't return anything. void means nothing is there to return. Also take some time to watch shorts. Doug explains why arrays are passed by reference. not by value. Due to this, any changes you make to an array will be done to original array itself. Another thing return values[] doesn't make sense. values is name of array, why are you using values[] ? Also as @Andrew G pointed out, make sure to re-compile every time, you make changes to your C-program
Apr 17, 2021 at 1:48 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Dec 16, 2020 at 18:05 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Aug 18, 2020 at 16:03 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Apr 20, 2020 at 13:01 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Dec 22, 2019 at 6:01 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Aug 24, 2019 at 1:00 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Apr 25, 2019 at 23:00 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Dec 26, 2018 at 22:02 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Nov 26, 2018 at 5:01 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Oct 22, 2018 at 11:00 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Sep 18, 2018 at 9:00 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Aug 15, 2018 at 19:03 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Jul 5, 2018 at 10:58 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
May 31, 2018 at 1:12 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Apr 17, 2018 at 9:26 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Mar 2, 2018 at 6:18 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Jan 24, 2018 at 10:32 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Dec 24, 2017 at 6:46 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Nov 16, 2017 at 2:21 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Oct 14, 2017 at 21:02 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Sep 13, 2017 at 12:15 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Aug 12, 2017 at 11:34 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Jul 4, 2017 at 19:40 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Jun 4, 2017 at 14:13 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
May 3, 2017 at 7:35 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Mar 26, 2017 at 10:15 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Feb 22, 2017 at 14:03 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Jan 20, 2017 at 12:54 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Dec 21, 2016 at 6:35 comment added Andrew G. Irene is saying that your return statement in line 18 is invalid since you defined your function as having no return in line 1. However, this is not the problem you were asking about. I have submitted an answer below.
Dec 21, 2016 at 6:32 answer added Andrew G. timeline score: 0
Dec 2, 2015 at 23:36 comment added Irene I know what the specs say. What i am saying is that a function of type void CANNOT possibly return anything. If you try to compile a function like: void funct () { int a = 42; return a; } You will get a compiler error: " error: void function 'funct' should not return a value" This will not only not compile at the appliance, it won't compile anywhere. So please, compile and post the correct code.
Dec 2, 2015 at 20:47 comment added Max The reason why I use void in the function is because that was stated in the assignment. I quote: " However, take care not to alter our declaration of sort . Its prototype must remain: void sort(int values[], int n); As this return type of void implies, this function must not return a sorted array; it must instead "destructively" sort the actual array that it’s passed by moving around the values therein.
Dec 2, 2015 at 20:12 comment added Irene This function, as it is, will not even compile. You can't return anything from a void function. So it makes no sense that you're running it through gdb. Make sure you're compiling the correct .c file (and that you haven't named the one that has this code something else, for example) This code you posted will never compile, let alone run.
Dec 2, 2015 at 19:01 review First posts
Dec 3, 2015 at 1:50
Dec 2, 2015 at 18:57 history asked Max CC BY-SA 3.0