Empty Program
Jump to navigation
Jump to search
Empty Program is a program that is made to not do anything. In most languages (including no-code esolangs that actually don't output anything, like !lyricly☭demote☭establish☭communism!), it is fairly easy.
C/C++
int main()
{
return 0;
}
Java
public class EmptyProgram(){
public static void main(){
// TODO
}
}
Pascal
begin end.
PHP
<?php ?>
Go
package main()
func main(){
// TODO
}
C♯ Mono
using System;
public class Empty(){
private static void Main(){
// TODO
}
}
G#
make e[return[]]
JavaScript(Node.JS)
process.exit()
Batch File
@echo off GOTO end :end
Assembly Language(Microsoft Macro Assembly)
assume cs:codesg
codesg segment
start:
mov cx, 0
jcxz end
end:
mov ah, 4ch
int 21h
codesg ends
end start
Rust
fn main(){}
VB Mono
Imports System
Module NOP
Sub Main()
End Sub
End Module
Brainfuck, JS, Python, Lua and many other languages
Befunge
@
易语言(?)
Not shown here.
Crazy J
Detailed description: Crazy J/Empty output
````j``j```jii`j`j``jii``jiiij```````j`j````jjii`j`j``jiii`j```jjiijj```j``jii``ji``jii`j`j``jii````j```jii```j``ji```ji``j``jiiii```jjii``j`jijii``jii
This program does nothing at all!
Xonovile/Raymond
⎕ ← “”
APL, Python, LUA, Brainfuck, and many other languages