Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [output]

The tag has no usage guidance.

1
vote
1answer
50 views

Where timing between outputs matters, does the solution need to account for buffering?

In certain languages (i.e. C), writes to streams like stdout can be buffered by default - what this means is that when one calls functions like ...
6
votes
3answers
189 views

Is a regex answer valid if it gives the reciprocal of the required output? [duplicate]

This answer gives the reciprocal of the required output, rather than the required output itself. In a simpler challenge this might cut out a significant part of the work, but for this particular ...
6
votes
1answer
124 views

Can we expect out arguments to be allocated?

According to this consensus in the default allowed inputs thread, functions may output by writing to an out argument. When outputting an array in languages like C/C++, where arrays are pointers to ...
1
vote
1answer
111 views

Can I use CBMC (a static verification tool for C) for code-golf?

So with the recent maze challenge I had the idea to implement a solution using CBMC (home / source), which is a tool that statically verifies C code and can produce counter-examples for property ...
7
votes
2answers
193 views

Does output count if part of it scrolls off the screen?

Let's consider a QBasic solution to FizzBuzz. The code works correctly, printing the required output from 1 all the way up. The problem is, since there's a lot of ...
4
votes
3answers
115 views

Is (consistently) swapping truthy / falsy values allowed in decision-problems?

I couldn't find any consensus on this on meta for a while, and this seems to be particularly helpful when answering decision-problem challenges. Should swapping truthy and falsy be allowed by default, ...
-1
votes
2answers
102 views

Should the output to STDERR count as output length? [duplicate]

A few challenges that requires the program to output something at a specified length, and a bunch of answers well... uses built-in error messages that's generated by the interpreter rather than the ...
13
votes
2answers
261 views

Output in reversible languages

A reversible language is a programming language where no operation is capable of destroying information. That means that with the output and a program you can always determine the input provided. ...
4
votes
1answer
95 views

JS Promises in code-golf? [duplicate]

Should code-golf submissions written in JS that return a promise be allowed? For example: Promise.resolve("hi") Doesn't output ...
5
votes
3answers
162 views

Can Halting be considered output?

I am currently designing a language that cannot halt unless it all of its memory is cleared, this means for any practical application it has no output whatsoever. However when the program does halt ...
1
vote
1answer
55 views

Are we allowed to copy the output of the code to the clipboard?

Asking for a friend... For "Hello, World!", you can save an extra 1 byte by using copy("Hello, World"). However, I am confused on if it's allowed for ...
0
votes
0answers
49 views

Backspace Character In output [duplicate]

If a program outputs some string. And then deletes part of the string with the backspace character (in java "\b"). And procedes to print the rest to spec. Would this be considered a violation?
14
votes
6answers
725 views

Which number formats are acceptable in output?

Comments on this loophole meta answer suggest that more than a simple yes or no answer is required. Which number formats are valid for output? Is there a difference between code-golf and other tags? ...