Empty Program
Jump to navigation
Jump to search
Empty Program is a program that doesn't do anything.
In Python, you just write nothing (a null program) to do it. But in C++, you need to write a main function with no operation except return 0
.
C++
int main() { return 0; }
Java
public class EmptyProgram(){ public static void main(){ // TODO } }
Pascal
begin end.
C
int main(){}
PHP
<?php ?>
Go
package main() func main(){ // TODO }
C♯ Mono
using System; public class Empty(){ private static void Main(){ // TODO } }
G#
make e; [return{}] make main; [f[e]{}]
JavaScript(Node.JS)
process.exit()
Batch File
@echo off GOTO end :end
Assembly Language
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 and many other languages
Befunge
@