I know that when it comes to graphical elements (such as figures, pictures, photos) you should always use in, for instance:
- in the picture,
- in figure 4,
- ...
But what about code listing? Should I write "on listing 3" or "in listing 3"?
I would like to say something like this:
As it can be seen on/in listing 3, the variable needs to be initialized with the value of 1024.
I meant the source code listing. The code of the computer program, given in text.
On/in listing below, the port
variable is initialized with the value of 1024
:
int main(int argc, char **argv)
{
char * ip_addr;
int port = 1024;
// ...
}