Java (JDK), 4 bytes
A->9
Outputs the number 9 which as a character is the average character of the code.
Defined as a int f(Void v). Note that Void is an accepted argument type for "no input" challenges.
If an int isn't an acceptable output for this challenge, the following is most definitely valid, for an extra byte.
A->56
Outputs 8 which is the average character.
Defined as a char f(Void v). I was surprised that no casting to char was required, but it beats v->';' by one byte.
- 14.5k
- 3
- 33
- 56