Timeline for Better way to read multiple int in C than scanf
Current License: CC BY-SA 4.0
28 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 24, 2023 at 17:39 | answer | added | l4m2 | timeline score: 1 | |
Nov 7, 2022 at 8:30 | vote | accept | BusyBeingDelicious | ||
Oct 4, 2022 at 9:56 | history | edited | DialFrost |
edited tags
|
|
Oct 4, 2022 at 9:50 | answer | added | mousetail 'he-him' | timeline score: 9 | |
Oct 4, 2022 at 9:34 | comment | added | DialFrost | @emanresuA It depends, if the user just wants to read the inputs only and not wanting to set them as variables then it's viable to use my solution | |
Oct 4, 2022 at 9:25 | answer | added | DialFrost | timeline score: 5 | |
Oct 4, 2022 at 9:14 | comment | added | emanresu A | This is almost certainly ungolfable, but you might be able to save two bytes taking advantage of how our rules allow you to not take unnecessary inputs. | |
Jun 25, 2022 at 20:56 | history | edited | The Fifth Marshal | CC BY-SA 4.0 |
added 1 character in body
|
Jun 25, 2022 at 12:00 | history | tweeted | twitter.com/StackCodeGolf/status/1540666136173346816 | ||
Jun 25, 2022 at 9: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 13, 2017 at 12:39 | history | edited | CommunityBot |
replaced http://codegolf.stackexchange.com/ with https://codegolf.stackexchange.com/
|
|
May 24, 2016 at 3:03 | review | Close votes | |||
May 24, 2016 at 15:51 | |||||
May 20, 2016 at 13:47 | comment | added | Abr001am |
@BusyBeingDelicious do i seem to talk in cryptic way? i said functions which deal with addresses shouldnt carry simple values amongst their parameters, you should define adresses of type int* between the finction's brackets.
|
|
May 20, 2016 at 13:41 | comment | added | BusyBeingDelicious | I don't really get what you're talking about @Agawa001, the portion I show is using K&R C syntax . If you're talking about the fact that I don't use the variables afterwards, it's because it's not the full full code, just a piece of it. And it's also because the rest of the code isn't relevant to the actual question. If there is an answer, it could solve multiple cases that look like this one. | |
May 19, 2016 at 11:19 | comment | added | Abr001am | @BusyBeingDelicious i m not sure what you are doing, the function you defined doesnt retain nothing because the variables stored are volatiles, look any function which does affect on addresses must encompasse pointers not simple integers. | |
May 19, 2016 at 10:48 | history | edited | BusyBeingDelicious | CC BY-SA 3.0 |
added 324 characters in body
|
May 17, 2016 at 9:03 | comment | added | Abr001am | @BusyBeingDelicious what are the constraints you are imposed or you do impose on us ? range of integers ? libraries used ? declarations of variables which you forgot to precede your piece of golfed code by ? are you considering c++ ? | |
May 16, 2016 at 14:05 | history | edited | Alex A. |
edited tags
|
|
May 16, 2016 at 6:58 | history | edited | isaacg |
edited tags
|
|
May 16, 2016 at 3:03 | comment | added | Comintern | I'm not sure it's possible to give a good answer without knowing anything about the problem domain at all. I suspect the real answer is to figure out a way to only read one int at a time and/or abuse pointers. | |
May 15, 2016 at 20:11 | history | edited | BusyBeingDelicious | CC BY-SA 3.0 |
Why no duplicate
|
May 15, 2016 at 17:07 | history | edited | Alex A. |
edited tags
|
|
May 15, 2016 at 11:49 | comment | added | Martin Ender | 1) @BusyBeingDelicious, welcome to PPCG! :) 2) To the close voters, this is not a general programming question. This is a tips question which asks for help golfing code which is absolutely on topic. | |
May 15, 2016 at 11:09 | review | Close votes | |||
May 15, 2016 at 11:49 | |||||
May 15, 2016 at 10:58 | history | edited | BusyBeingDelicious | CC BY-SA 3.0 |
added 5 characters in body
|
May 15, 2016 at 10:54 | history | edited | Blue |
edited tags
|
|
May 15, 2016 at 10:53 | review | First posts | |||
May 15, 2016 at 10:53 | |||||
May 15, 2016 at 10:52 | history | asked | BusyBeingDelicious | CC BY-SA 3.0 |